You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/11/09 02:51:56 UTC

[GitHub] [servicecomb-java-chassis] xuzhiweiand opened a new issue, #3467: SDK支持契约每次启动覆盖(和environment无关),但是注册中心不支持非开发环境覆盖

xuzhiweiand opened a new issue, #3467:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3467

   SDK在检测到契约不一致时,判断是否可以注册契约是或的关系,从代码看可以理解为环境为开发环境或者配置servicecomb.service.registry.instance.alwaysOverrideSchema为true就可以覆盖契约。
   private boolean onlineSchemaIsModifiable() {
       return ServiceCombConstants.DEVELOPMENT_SERVICECOMB_ENV.equalsIgnoreCase(microservice.getEnvironment())
           || ServiceRegistryConfig.INSTANCE.isAlwaysOverrideSchema();
     }
   但是注册中心会给出报错:
   2022-11-09T10:19:21.431+0800	ERROR	service/schema.go:638	production mode, schema[47c80fa9eb5be73c2a7a7f6a1fa5e8bb70c2e9de/****_mgr] already exist, can not be changed, operator: 10.30.116.57
   2022-11-09T10:19:21.431+0800	ERROR	service/schema.go:547	modify schema[47c80fa9eb5be73c2a7a7f6a1fa5e8bb70c2e9de/***_mgr] failed, operator: 10.30.116.57	{"error": "Not allowed to modify schema(schema already exist, can not be changed in production)"}
   
   这个问题应该如何解决或者规避 ?避免测试环境每次部署环境需要版本号+1的问题 ?


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3467: SDK支持契约每次启动覆盖(和environment无关),但是注册中心不支持非开发环境覆盖

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3467:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3467#issuecomment-1308278757

   这个需要使用新的 service-center 版本, 早期版本不支持契约覆盖。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org