Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【1.1.15】Configuration cache optimization #255

Merged
merged 4 commits into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public Message saveFullTree(HttpServletRequest req, @RequestBody JsonNode json)
engineVersion);
}
});
configurationService.clearAMCacheConf(username, creator, null, null);
} else {
configurationService.clearAMCacheConf(username, creator, engine, version);
}
Expand Down Expand Up @@ -502,7 +503,11 @@ public Message saveKeyValue(HttpServletRequest req, @RequestBody Map<String, Obj
configurationService.paramCheck(configKeyValue);
} catch (Exception e) {
if (force && e instanceof ConfigurationException) {
message.data("msg", e.getMessage());
message.data(
"msg",
"The update was successful, but the value verification failed. Please confirm if it has any impact:"
+ "(更新成功,但是值校验失败,请确认是否有影响)\n"
+ e.getMessage());
} else {
return Message.error(e.getMessage());
}
Expand Down
Loading