yanghao605 commented on code in PR #5062:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/5062#discussion_r2739792802
##########
foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/swagger/SwaggerLoader.java:
##########
@@ -181,7 +181,9 @@ private Swagger loadFromResource(String path) {
private Swagger loadFromRemote(Microservice microservice,
Collection<MicroserviceInstance> instances,
String schemaId) {
- String key = microservice.getServiceId() + "." + schemaId;
+ // The client does not restart, the serviceId changes after the provider
is upgraded. As a result,
+ // the same schema is loaded repeatedly.
+ String key = microservice.getServiceName() + "." + schemaId;
Review Comment:
这个修改会不会导致丢失最新的契约数据
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]