Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单机跑定时任务,zk断开后重连,没有触发leader选举 #123

Closed
happyomg opened this issue Aug 2, 2016 · 2 comments
Closed
Labels

Comments

@happyomg
Copy link

happyomg commented Aug 2, 2016

单机跑定时任务,在任务里打断点,过一两分钟等待zk session超时断开后,会触发重连zk,但此时会一直出现 com.dangdang.ddframe.job.internal.election.LeaderElectionService - Elastic job: leader node is electing, waiting for 100 ms at server 'xxx.xxx.xxx',没有触发leader选举,导致程序一直卡在等待选举leader的死循环里,不会再继续往下执行。

@Erik1288
Copy link

这个问题很难重现,一旦session过期到重连,会触发一个“一次性”的RECONNECTED事件来做选举。除非这个RECONNECTED时间丢了,这样就死循环了,但我试了很久没有试出来。

@linfenliang
Copy link

2018-12-20 04:20:10,865 [ReconcileService RUNNING] INFO [com.dangdang.ddframe.job.lite.internal.election.LeaderService69] - Leader is electing, waiting for 100 ms
2018-12-20 04:20:14,078 [ReconcileService RUNNING] INFO [com.dangdang.ddframe.job.lite.internal.election.LeaderService69] - Leader is electing, waiting for 100 ms

出现了20多次程序就不执行调度了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants