zcoo commented on code in PR #2780:
URL: https://github.com/apache/fluss/pull/2780#discussion_r2992985545


##########
fluss-server/src/main/java/org/apache/fluss/server/zk/ZooKeeperClient.java:
##########
@@ -178,20 +177,35 @@ public Optional<byte[]> getOrEmpty(String path) throws 
Exception {
     // Coordinator server
     // 
--------------------------------------------------------------------------------------------
 
-    /** Register a coordinator leader server to ZK. */
+    /** Register a coordinator server to ZK. */
+    public void registerCoordinatorServer(String coordinatorId) throws 
Exception {
+        String path = ZkData.CoordinatorIdZNode.path(coordinatorId);
+        
zkClient.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(path);

Review Comment:
   ok



-- 
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]

Reply via email to