-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-7721 Implementation for Admin Tool for Consistent Failover #2310
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
base: PHOENIX-7562-feature
Are you sure you want to change the base?
Conversation
0e924c7 to
ebb81be
Compare
kadirozde
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.
The tool looks good overall. We need more description for its commands. Please see my comments on this.
| /** | ||
| * The command line tool to manage high availability (HA) groups and their cluster roles. | ||
| * Command-line tool to manage HAGroupStoreRecord configurations. | ||
| * Updates both ZooKeeper and System.HA_GROUP table atomically. |
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.
We update ZK atomically but not the system table. The description and code comments should clarify this. It is also possible that the system table update may fail.
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.
Done
| .addOption(LIST_OPT) | ||
| .addOption(REPAIR_OPT); | ||
| // Commands | ||
| private static final String CMD_UPDATE = "update"; |
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 write enough description for each command to explain what exactly the command does and which parameters it requires? What happens when one ZK URL vs two ZK URLs are given? How are failures handled?
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.
Done
Admin Tool in Consistent HA for
Integration Tests Added