Skip to content

Use CrossProjectModeDecider in RemoteClusterService#140481

Merged
JeremyDahlgren merged 3 commits intoelastic:mainfrom
JeremyDahlgren:use-cross-proj-mode-decider-in-rcs
Jan 12, 2026
Merged

Use CrossProjectModeDecider in RemoteClusterService#140481
JeremyDahlgren merged 3 commits intoelastic:mainfrom
JeremyDahlgren:use-cross-proj-mode-decider-in-rcs

Conversation

@JeremyDahlgren
Copy link
Contributor

Addresses a TODO in RemoteClusterService by using the CrossProjectModeDecider which handles the details of the settings lookup. This is the class used throughout the codebase now to test if CPS is enabled.

Addresses a TODO in RemoteClusterService by using the
CrossProjectModeDecider which handles the details of
the settings lookup.  This is the class used throughout
the codebase now to test if CPS is enabled.
@JeremyDahlgren JeremyDahlgren added >non-issue :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. v9.4.0 labels Jan 9, 2026
@JeremyDahlgren JeremyDahlgren marked this pull request as ready for review January 9, 2026 23:00
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. label Jan 9, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

*/
public Optional<Boolean> isSkipUnavailable(String clusterAlias) {
if (crossProjectEnabled) {
if (crossProjectModeDecider.crossProjectEnabled()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just use the crossProjectEnabled() method that's on L240?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I also updated to use this down below instead of adding a new local. Thanks Pawan.

Copy link
Contributor

@pawankartik-elastic pawankartik-elastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@JeremyDahlgren JeremyDahlgren merged commit 75dd0bb into elastic:main Jan 12, 2026
35 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Jan 12, 2026
…i-project-tests

* upstream/main: (23 commits)
  Fix `testAckListenerReceivesNacksIfPublicationTimesOut` (elastic#140514)
  Reduce priority of clear-cache tasks (elastic#139685)
  Add docs and tests about `StreamOutput` to memory (elastic#140365)
  ES|QL - dense_vector support for COUNT, PRESENT, ABSENT aggregator functions (elastic#139914)
  Add release notes for v9.2.4 release (elastic#140487)
  Add release notes for v9.1.10 release (elastic#140488)
  Add conncectors release notes for 9.1.10, 9.2.4 (elastic#140499)
  Add parameter support in PromQL query durations (elastic#139873)
  Improve testing of STS credentials reloading (elastic#140114)
  Fix zstd native binary publishing script to support newer versions (elastic#140485)
  Add FlattenedFieldBinaryVsSortedSetDocValuesSyntheticSourceIT (elastic#140489)
  Store fallback match only text fields in binary doc values (elastic#140189)
  [DiskBBQ] Use the new merge executor for intra-merge parallelism (elastic#139942)
  ESQL: introduce support for mapping-unavailable fields (elastic#140463)
  Add ESNextOSQVectorsScorerTests (elastic#140436)
  Disable high cardinality tests on release builds (elastic#140503)
  ESQL: TRange timezone support (elastic#139911)
  Directly compressing `StreamOutput` (elastic#140502)
  ES|QL - fix dense vector enrich bug (elastic#139774)
  Use CrossProjectModeDecider in RemoteClusterService (elastic#140481)
  ...
spinscale pushed a commit to spinscale/elasticsearch that referenced this pull request Jan 21, 2026
Addresses a TODO in RemoteClusterService by using the
CrossProjectModeDecider which handles the details of
the settings lookup.  This is the class used throughout
the codebase now to test if CPS is enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >non-issue Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. Team:Distributed Meta label for distributed team. v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants