Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-13 Thread via GitHub


yanghao605 commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2053585190

   
2.1的消费端好像没有这个判断,[https://github.com/apache/servicecomb-java-chassis/pull/2362](https://github.com/apache/servicecomb-java-chassis/pull/2362)
   
[https://github.com/apache/servicecomb-java-chassis/pull/2363](https://github.com/apache/servicecomb-java-chassis/pull/2363)
  看看这两个修改,在2.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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-13 Thread via GitHub


yanghao605 commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2053583930

   
这个Listener使用通过spi加载的,在初始化SCBEngine的时候,应该就已经加载成功了,而这个时候按理来说,消费端的微服务状态还不为up,消费端是无法正常发起调用的,不应该存在服务端加载契约的说法


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-11 Thread via GitHub


dfdfqwqw commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2050852312

   初步想法 是把 RestEngineSchemaListener 提前到onBeforeHandler 来注册  求分析 这样改动是否会引入其他问题


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-11 Thread via GitHub


dfdfqwqw commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2050843914

   已定位 是因为 CreateMicroserviceVersionEvent 事件在RestEngineSchemaListener注册 触发了 
导致没有触发对应的流程
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/a13e743f-b1b3-42df-bfdb-b034e6aea9dc)
   


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-11 Thread via GitHub


dfdfqwqw commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2049342149

   
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/da435299-dca2-4b91-a72a-3691e3b93854)
   有个疑问 这个注册可以往前推吗


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-11 Thread via GitHub


dfdfqwqw commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2049293256

   补充 日志现象  异常时不打印红框中服务契约的添加
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/f6e7bd06-fc0e-46bc-a91d-a74cdd085e29)
   


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-11 Thread via GitHub


dfdfqwqw commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2049291332

   > 问题的过程是怎么样的?重启的时候,这个服务调用其他服务失败还是其他服务调用它失败? 是一直失败还是只有一次失败,后续成功? 
失败的情况,日志里面有没有异常?看看更新实例(日志搜索find instance)的过程中是不是有异常。
   
   服务重启后,进行接口调用,是本服务调用其他服务,一直失败后续不会恢复。
   
   没有搜到很明显的异常
   
   


-- 
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-unsubscr...@servicecomb.apache.org

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



Re: [I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-10 Thread via GitHub


liubao68 commented on issue #4295:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4295#issuecomment-2048867393

   问题的过程是怎么样的?重启的时候,这个服务调用其他服务失败还是其他服务调用它失败?   是一直失败还是只有一次失败,后续成功?
   失败的情况,日志里面有没有异常?看看更新实例(日志搜索find instance)的过程中是不是有异常。 
   


-- 
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-unsubscr...@servicecomb.apache.org

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



[I] 2.1版本 重启的时候有可能会导致 no schema defined [servicecomb-java-chassis]

2024-04-10 Thread via GitHub


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

   问题现象:
   服务重启成功后,调RPC接口会有这个报错
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/9cc2f68d-f8e6-49af-aa4c-bad4927dfc0c)
   
   
   初步分析:
   异常时,MicroserviceMeta中对象如下
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/b027f739-5776-4d81-9739-070f238e99e5)
   正常时,MicroserviceMeta对比
   
![image](https://github.com/apache/servicecomb-java-chassis/assets/51687046/af381a2c-15e7-4626-8993-4c24c80d81b4)
   
   
   怀疑是RestEngineSchemaListener 没有正常接收CreateMicroserviceVersionEvent 
事件完成处理,求问有没有避免措施,或者其他解决方案


-- 
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-unsubscr...@servicecomb.apache.org.apache.org

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