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.
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
Add changes for graceful node decommission #4586
Add changes for graceful node decommission #4586
Changes from 48 commits
bdb6c6f
afec689
3314ec3
bf622c4
d933377
bf4c217
c57530a
7c43ad1
ba8f500
8920480
eeed711
ed1ccbc
7922291
bed942a
67622a2
b75b108
f79b51d
46a1b12
afda24c
509015e
3f832f9
b70370c
5724ba8
6d1ba1a
e401908
289077f
0890c39
ec0f0e1
2f10664
daa0065
e9e25f1
4590da3
abbec12
bd6f485
9c1b2aa
9aa4f37
fd9fabe
79f06fc
0faa9b9
adbc120
81d320b
de54abd
d2b0444
4ddaae4
e5984f7
c600c6d
b97c83b
926c969
abb9825
26ba03e
8564208
3e1c3b1
01b208c
d8f0166
f367f4f
e5ae1f3
d9d4904
f9ced18
9881ef0
1ed1b57
dde8f48
8453ca2
3c417f5
602ced2
0574db5
3115772
95fc853
165ce7d
8e0f681
460e96c
f3a7240
c147d15
13c0c61
56c48eb
ce3cc6f
09aec9f
252a976
60d4e87
abdda72
1b8234c
a4a2ff6
e410e45
7d2f2df
e25e411
09b7cdc
878dad4
9d28440
d2303c5
b78b452
d1bb936
a8a6032
b724464
10a6e5f
d2d171d
68e4e94
d6fe3c4
ca0418f
04e4676
a6fbdb2
811fe8e
97c93c1
122b16c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
why return this? Should this be a builder?
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.
Following the other methods pattern. Other classes have the same pattern. Like
ClusterHealthRequest
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.
Please add a proper validation user friendly message on what range of values are supported
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.
Have Updated. Please check if thats fine.
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.
Do we need to use toString?
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.
Not needed. It will be called implicitly
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.
Can we directly use
WeightedRoutingService#registerWeightedRoutingMetadata
insteadThere 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.
How are we handling failures?
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.
The listener will call clearVotingConfig with appropriate parameter
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.
Let's avoid a map just for logging in a single line. I would suggest introducing a settings that could control minimum acceptable connections during draining
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.
@Bukhtawar .. We are just logging the active connections for now. I was thinking once we have datapoint related to active connections count for the nodes we can set the minimum connection setting. I will open a task to track that change. Let me know your thoughts.
Created an Issue to track the same: #4804
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.
Can response be null?
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.
Handled for null response. Added log for null response.
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.
Generic thread? @Bukhtawar what do you think?