You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/12/12 10:39:36 UTC
[dubbo] branch 3.0 updated: [3.0] Fix RouterSnapshot not build when disable route fail fast (#9390)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new abce73d [3.0] Fix RouterSnapshot not build when disable route fail fast (#9390)
abce73d is described below
commit abce73d912ed8ccb2747d836c71ee2e7f78d3ed9
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Sun Dec 12 18:39:06 2021 +0800
[3.0] Fix RouterSnapshot not build when disable route fail fast (#9390)
---
.../src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
index b4ca2c5..b088c14 100644
--- a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
+++ b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
@@ -200,6 +200,12 @@ public class RouterChain<T> {
return commonRouterResult;
}
}
+
+ if (commonRouterResult.isEmpty()) {
+ printRouterSnapshot(url, availableInvokers, invocation);
+ return BitList.emptyList();
+ }
+
return commonRouterResult;
}