Skip to content

Commit

Permalink
[ISSUE#12994] fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
KiteSoar committed Feb 24, 2025
1 parent e261fce commit 3c22682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ private Object do4Insert(ProceedingJoinPoint pjp, String group, String namespace
// Write or update: usage + 1
LimitType limitType = getLimitType(counterMode, group, namespaceId, content, hasTenant);
if (limitType != null) {
throw new NacosException(ErrorCode.SERVER_ERROR.getCode(), "Size limit exceeded for group: " + group
+ ", namespaceId: " + namespaceId);
throw new NacosException(ErrorCode.SERVER_ERROR.getCode(),
String.format("Configuration limit exceeded [group=%s, namespace=%s]. Reason: %s", group, namespaceId, limitType.name()));
}
} else {
// Write or update: usage + 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Object removeConfigByIdAround(ProceedingJoinPoint pjp) throws Throwable {
final String dataId = (String) args[0];
final String group = (String) args[1];
final String namespaceId = (String) args[2];
final String tag = (String) args[3];
final String grayName = (String) args[3];
final String srcIp = (String) args[4];
final String srcUser = (String) args[5];
final String scrType = (String) args[6];
Expand All @@ -183,7 +183,7 @@ Object removeConfigByIdAround(ProceedingJoinPoint pjp) throws Throwable {
configChangeRequest.setArg("namespaceId", namespaceId);
configChangeRequest.setArg("srcIp", srcIp);
configChangeRequest.setArg("srcUser", srcUser);
configChangeRequest.setArg("tag", tag);
configChangeRequest.setArg("grayName", grayName);
configChangeRequest.setArg("modifyTime", TimeUtils.getCurrentTimeStr());
return configChangeServiceHandle(pjp, pluginServices, configChangeRequest);
}
Expand Down

0 comments on commit 3c22682

Please sign in to comment.