wardlican opened a new pull request, #3920: URL: https://github.com/apache/amoro/pull/3920
## Why are the changes needed? The HighAvailabilityContainer adds a node registration function. In master-slave mode, each AMS node, after startup, needs to elect a master through ZooKeeper and register its own node information in ZooKeeper. Registration is done using ephemeral nodes. If a node fails, its registration information needs to be automatically deleted. The system also provides the master node with the ability to view the list of currently active nodes. Close #3919 . ## Brief change log Core functionalities implemented: 1. Node registration: - In master-slave mode, AMS nodes register their information with ZooKeeper (ZK) upon startup. - Ephemeral sequential nodes (EPHEMERAL_SEQUENTIAL) are used, automatically cleaned up when a node exits abnormally. 2. Node deregistration: - Nodes actively deregister from their ZK registration information when shutting down. 3. Live node query: - The master node can query a list of all currently live nodes. In non-master or non-master-slave modes, an empty list is returned. - ## How was this patch tested? - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] Run test locally before making a pull request ## Documentation - Does this pull request introduce a new feature? (yes / no) - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
