YvCeung commented on code in PR #7903:
URL: https://github.com/apache/incubator-seata/pull/7903#discussion_r2659739519


##########
server/src/main/java/org/apache/seata/server/cluster/manager/ClusterWatcherManager.java:
##########
@@ -90,35 +103,68 @@ public void init() {
     public void onChangeEvent(ClusterChangeEvent event) {
         if (event.getTerm() > 0) {
             GROUP_UPDATE_TERM.put(event.getGroup(), event.getTerm());
-            // Notifications are made of changes in cluster information
+            // Notify all watchers of cluster information changes
             Optional.ofNullable(WATCHERS.remove(event.getGroup()))
                     .ifPresent(watchers -> 
watchers.parallelStream().forEach(this::notifyWatcher));
         }
     }
 
     private void notifyWatcher(Watcher<HttpContext> watcher) {
-        watcher.setDone(true);
-        sendWatcherResponse(watcher, HttpResponseStatus.OK);
-    }
+        HttpContext context = watcher.getAsyncContext();
+        boolean isHttp2 = context instanceof HttpContext && context.isHttp2();

Review Comment:
   done in 
   95b3ee6



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to