parent
291a969e7d
commit
024f73866a
@ -160,7 +160,6 @@ public class NacosConfigService implements ConfigService {
|
||||
ConfigResponse response = worker.getServerConfig(dataId, group, tenant, timeoutMs);
|
||||
cr.setContent(response.getContent());
|
||||
cr.setEncryptedDataKey(response.getEncryptedDataKey());
|
||||
configFilterChainManager.doFilter(null, cr);
|
||||
|
||||
configFilterChainManager.doFilter(null, cr);
|
||||
content = cr.getContent();
|
||||
|
@ -91,6 +91,13 @@ public class LocalEncryptedDataKeyProcessor extends LocalConfigInfoProcessor {
|
||||
LOGGER.error("[" + envName + "] delete snapshot error, " + file, ioe);
|
||||
}
|
||||
} else {
|
||||
File parentFile = file.getParentFile();
|
||||
if (!parentFile.exists()) {
|
||||
boolean isMdOk = parentFile.mkdirs();
|
||||
if (!isMdOk) {
|
||||
LOGGER.error("[{}] save snapshot error", envName);
|
||||
}
|
||||
}
|
||||
if (JvmUtil.isMultiInstance()) {
|
||||
ConcurrentDiskUtil.writeFileContent(file, encryptDataKey, Constants.ENCODE);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user