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

Follower加载快照花费时间比较久时,会不会陷入到安装快照的死循环里 #423

Open
cangfengzhs opened this issue Oct 13, 2023 · 2 comments

Comments

@cangfengzhs
Copy link

  1. Leader 向 Follower发送快照
  2. Follower安装快照期间,Leader判定RPC超时(nextIndex不变)
  3. Leader在block一段时间之后,重新尝试向Follower发送快照
  4. 循环往复

请问会不会出现这种情况

@cpf1893
Copy link

cpf1893 commented Oct 20, 2023

image

@cpf1893
Copy link

cpf1893 commented Oct 20, 2023

Controller.set_timeout_ms()可修改某次RPC的值。单位毫秒,默认值1秒,最大值2^31(约24天),-1表示一直等到回复或错误。

这里看着是一致等待Follower,直到成功或者失败

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

No branches or pull requests

2 participants