-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[remove datanode] Add Remove DataNode SQL #14678
base: master
Are you sure you want to change the base?
Conversation
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.
- add it
- add table model support
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.
Good work! This SQL will make it much easier to remove DataNode. I have made some suggestions.
In addition, after implementing this SQL, can we simplify the current remove-datanode.sh ?
removeDataNodeStatement | ||
: REMOVE DATANODE dataNodeId=INTEGER_VALUE (',' dataNodeId=INTEGER_VALUE)* | ||
; |
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.
remove datanodes ?
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.
same
DATANODEADDRESS | ||
: D A T A N O D E A D D R E S S | ||
; |
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.
what's this
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.
removed
@@ -536,6 +536,11 @@ verifyConnection | |||
: VERIFY CONNECTION (DETAILS)? | |||
; | |||
|
|||
// ---- Remove DataNode | |||
removeDataNode | |||
: REMOVE DATANODE dataNodeId=INTEGER_LITERAL (COMMA dataNodeId=INTEGER_LITERAL)* |
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.
remove datanodes?
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.
Both "datanode" and "datanodes" make sense in this context, so I’d prefer to leave it as is for now.
LOGGER.info( | ||
"Start to remove datanode, removed DataNodes endpoint: {}", removeDataNodeLocations); |
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.
It's not recommended to print TDataNodeLocation directly, because it's too long.
Please consider RegionMaintainHandler.simplifiedLocation
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.
changed
Good point! With the addition of the remove datanode SQL, I feel the |
Description
same as the title