This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new 60dc750  [SCB-1861] fix bug when delete all config
60dc750 is described below

commit 60dc750b0ea6602f3737b69138429f97776972c6
Author: GuoYL <[email protected]>
AuthorDate: Tue May 12 19:23:05 2020 +0800

    [SCB-1861] fix bug when delete all config
    
    (cherry picked from commit 08eaf304364111b5965bc21360f5222ab36f9de0)
---
 .../main/java/org/apache/servicecomb/config/kie/client/KieWatcher.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/client/KieWatcher.java
 
b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/client/KieWatcher.java
index 4ea5e26..0d7ba32 100644
--- 
a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/client/KieWatcher.java
+++ 
b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/client/KieWatcher.java
@@ -43,7 +43,7 @@ public class KieWatcher {
   public void refreshConfigItems(Map<String, Object> remoteItems) {
     String md5Vaule = KieUtil.encrypt(remoteItems.toString());
     if (CollectionUtils.isEmpty(remoteItems)) {
-      updateHandler.handle("delete", remoteItems);
+      updateHandler.handle("delete", lastTimeData);
       lastTimeData = remoteItems;
       return;
     }

Reply via email to