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 e86cfcf fix delete mesh rule npx (#8435)
e86cfcf is described below
commit e86cfcfa0e2c4022aecdfad95b992c6e378abc80
Author: haoyann <[email protected]>
AuthorDate: Sat Aug 7 22:31:15 2021 +0800
fix delete mesh rule npx (#8435)
---
.../dubbo/rpc/cluster/router/mesh/route/MeshAppRuleListener.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshAppRuleListener.java
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshAppRuleListener.java
index 000a385..5fa7618 100644
---
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshAppRuleListener.java
+++
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshAppRuleListener.java
@@ -17,6 +17,7 @@
package org.apache.dubbo.rpc.cluster.router.mesh.route;
+import org.apache.dubbo.common.config.configcenter.ConfigChangeType;
import org.apache.dubbo.common.config.configcenter.ConfigChangedEvent;
import org.apache.dubbo.common.config.configcenter.ConfigurationListener;
import org.apache.dubbo.common.logger.Logger;
@@ -101,6 +102,10 @@ public class MeshAppRuleListener implements
ConfigurationListener {
@Override
public void process(ConfigChangedEvent event) {
+ if (event.getChangeType() == ConfigChangeType.DELETED) {
+ receiveConfigInfo("");
+ return;
+ }
receiveConfigInfo(event.getContent());
}
}