-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add custom metadata to track node shutdowns #70044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is just a basic class to iterate on, plus tests.
dakrone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I left one minor comment, thanks Gordon
| /** | ||
| * Contains data about a single node's shutdown readiness. | ||
| */ | ||
| public class SingleNodeShutdownMetadata extends AbstractDiffable<SingleNodeShutdownMetadata> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we also add node_name to this, because the human readable name is probably the most handy way folks can reference the nodes
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
dakrone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Gordon! I left some comments
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java
Outdated
Show resolved
Hide resolved
dakrone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I left two really minor nits, but no need for another review!
server/src/main/java/org/elasticsearch/cluster/metadata/NodeShutdownComponentStatus.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/NodeShutdownComponentStatus.java
Show resolved
Hide resolved
The node shutdown metadata is not hooked up to any APIs or logic as of this PR, this is just the data structures and associated tests.
This commit updates the serialization verion used for node shutdown metadata following the backport of elastic#70044.
This commit updates the serialization verion used for node shutdown metadata following the backport of #70044. Also re-enables BWC tests.
The node shutdown metadata is not hooked up to any APIs or logic as of this PR, this is just the data structures and associated tests.
Relates #70338