You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Environment
Dubbo version: 3.2
Operating System version: xxx
Java version: xxx
Steps to reproduce this issue
boolean contains = StringUtils.isContains(oldConfigContent, appName) has problem.
oldConfigContentis a list of service names. If strings.Contains(oldVal, appName), then the SNP registration will be skipped, e.g. if oldConfigContentis = dubbo.io-2 and appName= dubbo.io, then newServiceName will be skipped.
Pls. provide [GitHub address] to reproduce this issue.
Expected Behavior
Actual Behavior
MetadataServiceNameMapping.javapublicbooleanmap(URLurl) {
booleanresult = true;
for (Map.Entry<String, MetadataReport> entry : metadataReportInstance.getMetadataReports(true).entrySet()) {
do {
ConfigItemconfigItem = metadataReport.getConfigItem(serviceInterface, DEFAULT_MAPPING_GROUP);
StringoldConfigContent = configItem.getContent();
if (StringUtils.isNotEmpty(oldConfigContent)) {
booleancontains = StringUtils.isContains(oldConfigContent, appName);
if (contains) {
// From the user's perspective, it means successful when the oldConfigContent has contained the current appName. So we should not throw an Exception to user, it will confuse the user.succeeded = true;
break;
}
}
If there is an exception, please attach the exception trace:
Just put your stack trace here!
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce this issue
boolean contains = StringUtils.isContains(oldConfigContent, appName) has problem.
oldConfigContentis a list of service names. If strings.Contains(oldVal, appName), then the SNP registration will be skipped, e.g. if oldConfigContentis = dubbo.io-2 and appName= dubbo.io, then newServiceName will be skipped.
Pls. provide [GitHub address] to reproduce this issue.
Expected Behavior
Actual Behavior
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: