Skip to content

Conversation

@ritegarg
Copy link
Contributor

@ritegarg ritegarg commented Oct 30, 2025

Admin Tool in Consistent HA for

  • Getting current list of HAGroups and details
  • Getting specific HAGroup details
  • Getting ClusterRoleRecord
  • Initiating Failover
  • Aborting Failover
  • Updating HA config (urls etc, not the xml config).

Integration Tests Added

  • testGetClusterRoleRecordCommand
  • testInitiateFailoverCommandTimeout
  • testListHAGroupStoreRecordsCommand
  • testAbortFailoverCommand
  • testGetHAGroupStoreRecordCommand
  • testUpdateHAGroupStoreRecordCommand
  • testInitiateFailoverCommand

Copy link
Contributor

@kadirozde kadirozde left a 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.
Copy link
Contributor

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.

Copy link
Contributor Author

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";
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ritegarg ritegarg requested a review from kadirozde November 26, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants