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/03 07:55:00 UTC

[GitHub] [servicecomb-java-chassis] little-cui opened a new issue, #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

little-cui opened a new issue, #3449:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3449

   sdk单个版本的契约只会同步一次,后面就不会变更了,如果provider未完成契约上传,则第一次拿下来是少的,就会导致后面请求失败


-- 
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 #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   这个问题应该和 https://github.com/apache/servicecomb-java-chassis/issues/2655 一样, 但是通过模拟的方式一直没有复现问题。 如果 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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   目前注册中心的“微服务信息”被设计为静态信息,是不支持监听变化的;只有“实例信息”被设计为动态信息,需要监听其变化。 


-- 
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


[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   可以看看这个[#3384](https://github.com/apache/servicecomb-java-chassis/issues/3384)
   应该是个类似的问题


-- 
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


[GitHub] [servicecomb-java-chassis] fanjiwang1992 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   > 目前注册中心的“微服务信息”被设计为静态信息,是不支持监听变化的;只有“实例信息”被设计为动态信息,需要监听其变化。
   
   或者针对


-- 
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


[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   > 提了个PR,支持服务信息更新:[3451]( https://github.com/apache/servicecomb-java-chassis/pull/3451)
   这个里面的修改只能说是在实例信息有变的情况下可以更新微服务的契约信息吧,但是像当前issue的问题貌似没有办法解决,毕竟它只是在服务端注册过程中,查询到的契约信息不完整,后续服务端实例信息也不会有变化吧
   
   
   


-- 
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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   @yanghao605 是的。 数据不完整问题需要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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   https://github.com/apache/servicecomb-java-chassis/issues/3384 还不是一样的问题。 我理解这个问题是注册中心的问题, 服务注册需要保证原子性。 在服务部分注册的场景下,应该对其他服务不可见。 


-- 
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


[GitHub] [servicecomb-java-chassis] fanjiwang1992 closed issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

Posted by GitBox <gi...@apache.org>.
fanjiwang1992 closed issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求
URL: https://github.com/apache/servicecomb-java-chassis/issues/3449


-- 
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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   提了个PR,支持服务信息更新: https://github.com/apache/servicecomb-java-chassis/pull/3451
   
   但是注册中心仍然有个问题:
      
   
   测试场景:(1)微服务A,版本v1,契约s1,注册成功;  (2)然后再启动微服务A、版本v1,契约s1(修改内容,增加一个接口,覆盖前面一个实例的内容)。  这种情况下, (2)服务已经注册成功了,但是调用查询契约的接口,查询出来的还是第一次的内容,不是覆盖的内容。 
   
   这个问题和时序有关,如果我再查询契约的接口打个断点,等一段时间再往下走,就可以查询到正确的内容。如果不打断点,微服务不做调试,大概率查询到的都是老的契约内容。 证明在服务注册成功,并且广播了实例变更的的情况下, SC也可能没正确同步契约数据,导致查询到老数据。 
   
   注册中心提了一个问题单: https://github.com/apache/servicecomb-service-center/issues/1349
   
   在这个问题单修改前, 建议用户接口有变化的时候,更新版本号,可以规避这个问题。 
   
   


-- 
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


[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   这个问题我理解,微服务的实例信息是在微服务的静态信息注册完成后,才会注册到注册中心
   按理来说如果能够拿到实例信息,微服务的静态信息应该是注册中心中完整的内容


-- 
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


[GitHub] [servicecomb-java-chassis] fanjiwang1992 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   > sdk单个版本的契约只会同步一次,后面就不会变更了,如果provider未完成契约上传,则第一次拿下来是少的,就会导致后面请求失败
     这个注册中心 注册 要是能够保持原子性,或者服务发现的时候注册中心接口有个原子性校验


-- 
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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   @little-cui 是否在 service-center 提个 issue 跟踪下?


-- 
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


[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3449: 客户端在服务端注册契约过程中进行契约查询,查询到的契约信息不完整,影响业务正常请求

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

   > sdk单个版本的契约只会同步一次,后面就不会变更了,如果provider未完成契约上传,则第一次拿下来是少的,就会导致后面请求失败
   所以这个微服务的契约信息在注册中心是完整的对吧。
   


-- 
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