Skip to content

Conversation

@burqen
Copy link
Contributor

@burqen burqen commented Nov 4, 2025

It only relies on cluster state. Also, replace GetBasicStatusAction with inline instance of ActionType.
Relates to #101805

@elasticsearchmachine elasticsearchmachine added v9.3.0 needs:triage Requires assignment of a team area label labels Nov 4, 2025
@burqen burqen added the :Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. label Nov 4, 2025
@elasticsearchmachine elasticsearchmachine added Team:Distributed Coordination Meta label for Distributed Coordination team and removed needs:triage Requires assignment of a team area label labels Nov 4, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @burqen, I've created a changelog YAML for you.

burqen and others added 3 commits November 5, 2025 08:51
It only relies on cluster state.
Also, replace GetBasicStatusAction with inline instance of
ActionType.
We need to register a request handler for TransportGetBasicStatusAction
and make it possible for requests to be read from transport layer in
order to support old versions sending GetBasicStatusRequest to us.
@burqen burqen force-pushed the 2025.11.04.TransportGetBasicStatusAction-run-on-local branch from ca34860 to 1c6eda4 Compare November 5, 2025 07:52
@burqen burqen requested a review from DaveCTurner November 5, 2025 12:24
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM (optional comment)


private static GetBasicStatusResponse getBasicStatus() {
return safeGet(clusterAdmin().execute(GetBasicStatusAction.INSTANCE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));
return safeGet(clusterAdmin().execute(TransportGetBasicStatusAction.TYPE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't need to get the specialized cluster admin client:

Suggested change
return safeGet(clusterAdmin().execute(TransportGetBasicStatusAction.TYPE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));
return safeGet(client().execute(TransportGetBasicStatusAction.TYPE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));

(not introduced in this PR, in fact it was my mistake in #109121, but may as well clean it up here now)


private static PostStartBasicResponse startBasic(boolean acknowledged) {
return safeGet(
clusterAdmin().execute(
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly here

@burqen burqen merged commit 2c63c9a into elastic:main Nov 5, 2025
34 checks passed
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Nov 6, 2025
* TransportGetBasicStatusAction runs on local

It only relies on cluster state.
Also, replace GetBasicStatusAction with inline instance of
ActionType.

* Handle BwC in TransportGetBasicStatusAction

We need to register a request handler for TransportGetBasicStatusAction
and make it possible for requests to be read from transport layer in
order to support old versions sending GetBasicStatusRequest to us.

* Update docs/changelog/137567.yaml

* Use client() instead of clusterAdmin() in test
Kubik42 pushed a commit to Kubik42/elasticsearch that referenced this pull request Nov 10, 2025
* TransportGetBasicStatusAction runs on local

It only relies on cluster state.
Also, replace GetBasicStatusAction with inline instance of
ActionType.

* Handle BwC in TransportGetBasicStatusAction

We need to register a request handler for TransportGetBasicStatusAction
and make it possible for requests to be read from transport layer in
order to support old versions sending GetBasicStatusRequest to us.

* Update docs/changelog/137567.yaml

* Use client() instead of clusterAdmin() in test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. >enhancement Team:Distributed Coordination Meta label for Distributed Coordination team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants