Skip to content

Commit

Permalink
feat(#11236): Remove invalid assertion in com.alibaba.nacos.config.se…
Browse files Browse the repository at this point in the history
…rver.service.ConfigCacheService#dumpChange. (#11237)
  • Loading branch information
Bo-Qiu authored Oct 11, 2023
1 parent 0e43a93 commit 7eb3af2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7eb3af2

Please sign in to comment.