AlbumenJ commented on code in PR #10544:
URL: https://github.com/apache/dubbo/pull/10544#discussion_r963471591


##########
dubbo-xds/src/main/java/org/apache/dubbo/registry/xds/util/protocol/AbstractProtocol.java:
##########
@@ -231,6 +234,16 @@ public void onNext(DiscoveryResponse value) {
         @Override
         public void onError(Throwable t) {
             logger.error("xDS Client received error message! detail:", t);
+
+            if (t instanceof StatusRuntimeException) {
+                try {
+                    StreamObserver<DiscoveryRequest> requestObserver = 
xdsChannel.createDeltaDiscoveryRequest(new ResponseObserver(requestId));
+                    requestObserverMap.put(requestId, requestObserver);

Review Comment:
   这块重建后不需要重新发起请求吗?
   重试的逻辑可以整合一起管理,包括网络抖动那些



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