yanghao605 opened a new issue, #3384: URL: https://github.com/apache/servicecomb-java-chassis/issues/3384
微服务初次调用时,会创建相应的MicroserviceVersions对象,并推送事件CreateMicroserviceVersionEvent,在ServiceRegistryListener中监听该事件,onCreateMicroserviceVersion方法中会遍历微服务的schemaId从注册中心获取对应的swagger,而在后续获取swagger的逻辑中,可能由于网络等原因导致本次获取swagger失败,从而返回一个null,而SDK是允许schemaId对应的swagger为null的情况,这就导致本地调用时获取微服务的信息是成功的,且存储在SDK的缓存中,不过若是调用到swagger为null的schemaId中的相关operation时,会失败。并且由于该缓存对应的revisionID在注册中心是没有变动的,所以后续的缓存更新中,当前所调用的微服务,其并不会更新,也就导致了微服务的某一schemaId对应的swagger内容持续丢失 -- 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]
