Skip to content

Add custom metadata to track node shutdowns#70044

Merged
AthenaEryma merged 18 commits intoelastic:masterfrom
AthenaEryma:decom/metadata
Mar 25, 2021
Merged

Add custom metadata to track node shutdowns#70044
AthenaEryma merged 18 commits intoelastic:masterfrom
AthenaEryma:decom/metadata

Conversation

@AthenaEryma
Copy link
Copy Markdown
Contributor

@AthenaEryma AthenaEryma commented Mar 6, 2021

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

This is just a basic class to iterate on, plus tests.
Copy link
Copy Markdown
Member

@dakrone dakrone left a 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>
Copy link
Copy Markdown
Member

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

@AthenaEryma AthenaEryma added v7.13.0 v8.0.0 :Core/Infra/Core Core issues without another label and removed WIP labels Mar 22, 2021
@AthenaEryma AthenaEryma marked this pull request as ready for review March 22, 2021 23:47
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Mar 22, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@AthenaEryma AthenaEryma requested a review from dakrone March 22, 2021 23:47
Copy link
Copy Markdown
Member

@dakrone dakrone left a 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

@AthenaEryma AthenaEryma requested a review from dakrone March 24, 2021 20:18
@AthenaEryma AthenaEryma added :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown and removed :Core/Infra/Core Core issues without another label labels Mar 24, 2021
Copy link
Copy Markdown
Member

@dakrone dakrone left a 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!

@AthenaEryma AthenaEryma merged commit 9c78c00 into elastic:master Mar 25, 2021
@AthenaEryma AthenaEryma deleted the decom/metadata branch March 25, 2021 19:01
AthenaEryma added a commit that referenced this pull request Mar 29, 2021
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.
AthenaEryma added a commit to AthenaEryma/elasticsearch that referenced this pull request Mar 29, 2021
This commit updates the serialization verion used for node shutdown
metadata following the backport of elastic#70044.
AthenaEryma added a commit that referenced this pull request Mar 30, 2021
This commit updates the serialization verion used for node shutdown
metadata following the backport of #70044.

Also re-enables BWC tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >non-issue Team:Core/Infra Meta label for core/infra team v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants