From 1030535612e15308283fa8464eac312cfddd4cc2 Mon Sep 17 00:00:00 2001 From: "blake.qiu" Date: Mon, 9 Oct 2023 14:18:06 +0800 Subject: [PATCH] feat(#11236): Remove invalid assertion in com.alibaba.nacos.config.server.service.ConfigCacheService#dumpChange. --- .../nacos/config/server/service/ConfigCacheService.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java b/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java index ae99e688592..0a73e3ad059 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java @@ -101,7 +101,6 @@ public static boolean dumpWithMd5(String dataId, String group, String tenant, St CacheItem ci = makeSure(groupKey, encryptedDataKey); ci.setType(type); final int lockResult = tryWriteLock(groupKey); - assert (lockResult != 0); if (lockResult < 0) { DUMP_LOG.warn("[dump-error] write lock failed. {}", groupKey); @@ -209,7 +208,6 @@ public static boolean dumpBeta(String dataId, String group, String tenant, Strin makeSure(groupKey, null); final int lockResult = tryWriteLock(groupKey); - assert (lockResult != 0); if (lockResult < 0) { DUMP_LOG.warn("[dump-beta-error] write lock failed. {}", groupKey); @@ -294,7 +292,6 @@ public static boolean dumpTag(String dataId, String group, String tenant, String makeSure(groupKey, null); final int lockResult = tryWriteLock(groupKey); - assert (lockResult != 0); if (lockResult < 0) { DUMP_LOG.warn("[dump-tag-error] write lock failed. {}", groupKey); @@ -360,7 +357,6 @@ public static boolean dumpChange(String dataId, String group, String tenant, Str makeSure(groupKey, encryptedDataKey); final int lockResult = tryWriteLock(groupKey); - assert (lockResult != 0); if (lockResult < 0) { DUMP_LOG.warn("[dump-error] write lock failed. {}", groupKey);