Run TransportClusterStateAction on local node#129872
Merged
nielsbauman merged 8 commits intoelastic:mainfrom Jul 8, 2025
Merged
Run TransportClusterStateAction on local node#129872nielsbauman merged 8 commits intoelastic:mainfrom
TransportClusterStateAction on local node#129872nielsbauman merged 8 commits intoelastic:mainfrom
Conversation
This action solely needs the cluster state, it can run on any node. Since this action is invoked across clusters, we need to be able to (de)serialize requests and responses. We introduce a new `RemoteClusterStateRequest` that wraps the existing `ClusterStateRequest` and implements (de)serialization.
nielsbauman
commented
Jun 23, 2025
server/src/main/java/org/elasticsearch/action/ActionModule.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/elasticsearch/action/admin/cluster/state/RemoteClusterStateRequest.java
Outdated
Show resolved
Hide resolved
Collaborator
|
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
Collaborator
|
Hi @nielsbauman, I've created a changelog YAML for you. |
Collaborator
|
Pinging @elastic/es-data-management (Team:Data Management) |
DaveCTurner
reviewed
Jul 2, 2025
Contributor
DaveCTurner
left a comment
There was a problem hiding this comment.
Looks good, just a couple of comments
server/src/internalClusterTest/java/org/elasticsearch/cluster/NoMasterNodeIT.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/ActionModule.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/admin/cluster/state/ClusterStateRequest.java
Show resolved
Hide resolved
...er/src/main/java/org/elasticsearch/action/admin/cluster/state/RemoteClusterStateRequest.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/elasticsearch/action/admin/cluster/state/RemoteClusterStateRequest.java
Outdated
Show resolved
Hide resolved
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this pull request
Jul 14, 2025
The shard started may not be visible on the master node if the wait is on a data node. In that case, the DiskThreshold monitor may use stale cluster state for releasing read-only blocks. This PR fixes it by waiting on the master node, which is the behaviour before elastic#129872. Resolves: elastic#131146
This was referenced Jul 14, 2025
mridula-s109
pushed a commit
to mridula-s109/elasticsearch
that referenced
this pull request
Jul 17, 2025
The shard started may not be visible on the master node if the wait is on a data node. In that case, the DiskThreshold monitor may use stale cluster state for releasing read-only blocks. This PR fixes it by waiting on the master node, which is the behaviour before elastic#129872. Resolves: elastic#131146
mridula-s109
pushed a commit
to mridula-s109/elasticsearch
that referenced
this pull request
Jul 17, 2025
The shard started may not be visible on the master node if the wait is on a data node. In that case, the DiskThreshold monitor may use stale cluster state for releasing read-only blocks. This PR fixes it by waiting on the master node, which is the behaviour before elastic#129872. Resolves: elastic#131146
45 tasks
breskeby
pushed a commit
to breskeby/elasticsearch
that referenced
this pull request
Feb 11, 2026
breskeby
pushed a commit
to breskeby/elasticsearch
that referenced
this pull request
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This action solely needs the cluster state, it can run on any node. Since this action is invoked across clusters, we need to be able to (de)serialize requests and responses. We introduce a new
RemoteClusterStateRequestthat wraps the existingClusterStateRequestand implements (de)serialization.