LiebingYu commented on code in PR #1400:
URL: https://github.com/apache/fluss/pull/1400#discussion_r2454753471


##########
fluss-server/src/main/java/org/apache/fluss/server/coordinator/CoordinatorService.java:
##########
@@ -727,13 +731,33 @@ public CompletableFuture<AlterClusterConfigsResponse> 
alterClusterConfigs(
 
     @Override
     public CompletableFuture<AddServerTagResponse> 
addServerTag(AddServerTagRequest request) {
-        throw new UnsupportedOperationException("Support soon!");
+        CompletableFuture<AddServerTagResponse> response = new 
CompletableFuture<>();
+        eventManagerSupplier
+                .get()
+                .put(
+                        new AddServerTagEvent(
+                                Arrays.stream(request.getServerIds())
+                                        .boxed()
+                                        .collect(Collectors.toList()),
+                                ServerTag.valueOf(request.getServerTag()),
+                                response));
+        return response;
     }
 
     @Override
     public CompletableFuture<RemoveServerTagResponse> removeServerTag(
             RemoveServerTagRequest request) {
-        throw new UnsupportedOperationException("Support soon!");
+        CompletableFuture<RemoveServerTagResponse> response = new 
CompletableFuture<>();

Review Comment:
   ditto



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