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 2019/10/17 03:42:14 UTC

[GitHub] [servicecomb-pack] pengyu0929 opened a new issue #573: Failed to get reconnected sender, all alpha server is down

pengyu0929 opened a new issue #573: Failed to get reconnected sender, all alpha server is down
URL: https://github.com/apache/servicecomb-pack/issues/573
 
 
   我现在有两个问题:
   1. 我发现有人在之前提出了和我现在一样的问题, #326 ,不知道你们是否修复?
   2.有两个服务 A 、B,在A中有两个接口 A1、A2,B中有两个接口 B1、B2,在A1上没有添加@SagaStart注解,A2添加,B1、B2都添加了@Compensable注解;
   请求三次,第一次请求A2-->B2,没有问题;
   第二次请求A1-->B1,就出现了 `Failed to get reconnected sender, all alpha server is down`,此时omega将sender的value值设置成了 Long 的最大值;
   第三次请求 A2-->B2,这时也出现了 `Failed to get reconnected sender, all alpha server is down`,
   这时我发现 sender 的 value 值为 Long 的最大值,使用的是默认的sender;
   以上情况,我认为 A1 没有添加 @SagaStart 注解出现问题是正常的,但是在之后调用 A2 时不应该出现 `Failed to get reconnected sender, all alpha server is down`;
   之后我测试了一种情况,就是在请求A2-->B2,在B2向alpha发送事件时,我手动将alpha关闭,此时会抛出 `Failed to get reconnected sender, all alpha server is down` ,同时将sender的value值设置为Long的最大值。之后我重启alpha,再次请求A2-->B2,请求正常(sender的value值为0L)。
   这种情况是为什么呢?是在omega重连alpha时将sender的value值重置了吗?可是我翻看源码并没找到相关的代码。
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services