You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/09/14 06:42:14 UTC
[GitHub] [incubator-ratis] amaliujia opened a new pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
amaliujia opened a new pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198
## What changes were proposed in this pull request?

Analysis:
testRestorePriority failed due to no leader selected exception. Based on the log, two of three server in the cluster was stuck at STARTING state so they could not participate into leader election, no matter how long waiting time.
So this PR proposes to restart the cluster when no leader is elected when have reached half of the number of attempts. Because at this moment it is likely that the servers are stuck somehow so keep waiting won't change anything.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/RATIS-1060
## How was this patch tested?
UT
----------------------------------------------------------------
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
[GitHub] [incubator-ratis] amaliujia closed pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
Posted by GitBox <gi...@apache.org>.
amaliujia closed pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198
----------------------------------------------------------------
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
[GitHub] [incubator-ratis] amaliujia commented on pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
Posted by GitBox <gi...@apache.org>.
amaliujia commented on pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198#issuecomment-691850119
R @bshashikant @runzhiwang Can you take a look please? Thanks!
----------------------------------------------------------------
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
[GitHub] [incubator-ratis] runzhiwang commented on pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
Posted by GitBox <gi...@apache.org>.
runzhiwang commented on pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198#issuecomment-691854457
@amaliujia Okay, I would prefer to the root cause fix.
----------------------------------------------------------------
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
[GitHub] [incubator-ratis] amaliujia commented on pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
Posted by GitBox <gi...@apache.org>.
amaliujia commented on pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198#issuecomment-691853760
@runzhiwang
Unfortunately the log was truncated and also I only caught this situation once locally.
If I can see the similar situation again with full logs I might be able to dig into the root cause.
----------------------------------------------------------------
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
[GitHub] [incubator-ratis] runzhiwang commented on pull request #198: RATIS-1060. Fix TestRaftReconfiguration.testRestorePriority
Posted by GitBox <gi...@apache.org>.
runzhiwang commented on pull request #198:
URL: https://github.com/apache/incubator-ratis/pull/198#issuecomment-691852065
> Based on the log, two of three server in the cluster was stuck at STARTING state so they could not participate into leader election
@amaliujia Thanks the patch. Could you find the root cause of cluster was stuck at STARTING state ?
----------------------------------------------------------------
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