yanghao605 commented on code in PR #3413:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/3413#discussion_r1002816920
##########
core/src/main/java/org/apache/servicecomb/core/definition/ServiceRegistryListener.java:
##########
@@ -87,12 +98,30 @@ public void
onCreateMicroserviceVersion(CreateMicroserviceVersionEvent event) {
// service center better to resolve the problem.
if (!isServiceCenter) {
for (String schemaId : microservice.getSchemas()) {
- Swagger swagger =
scbEngine.getSwaggerLoader().loadSwagger(microservice,
microserviceVersion.getInstances(),
- schemaId);
- // allow users register schemaId, but without schema contents. This is
useful when cooperate with other
- // non java-chassis framework.
- if (swagger != null) {
- microserviceMeta.registerSchemaMeta(schemaId, swagger);
+ for (int i = 0; i <= SCHEMA_RETRY; i++) {
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]