Skip to content

Commit

Permalink
[ISSUE alibaba#7593]修复集群模式使用内置数据库配置中心配置文件丢失 (alibaba#7612)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoke authored Jan 18, 2022
1 parent 5455f9d commit f0b1102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static boolean dump(String dataId, String group, String tenant, String co
try {
final String md5 = MD5Utils.md5Hex(content, Constants.ENCODE);

if (md5.equals(ConfigCacheService.getContentMd5(groupKey))) {
if (md5.equals(ConfigCacheService.getContentMd5(groupKey)) && DiskUtil.targetFile(dataId, group, tenant).exists()) {
DUMP_LOG.warn("[dump-ignore] ignore to save cache file. groupKey={}, md5={}, lastModifiedOld={}, "
+ "lastModifiedNew={}", groupKey, md5, ConfigCacheService.getLastModifiedTs(groupKey),
lastModifiedTs);
Expand Down

0 comments on commit f0b1102

Please sign in to comment.