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

如何获取当前节点的最大日志序号、已提交日志序号 #879

Closed
LinHuiG opened this issue Sep 15, 2022 · 2 comments · Fixed by #880
Closed

如何获取当前节点的最大日志序号、已提交日志序号 #879

LinHuiG opened this issue Sep 15, 2022 · 2 comments · Fixed by #880

Comments

@LinHuiG
Copy link

LinHuiG commented Sep 15, 2022

Your question

如何获取当前节点的最大日志序号、已提交日志序号,已应用到状态机的日志序号。
如何在当前节点上获取其他节点的最大日志序号、已提交日志序号,已应用到状态机的日志序号。

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

  • SOFAJRaft version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:
@killme2008
Copy link
Contributor

这些信息在 FSMCallerImpl 中都有,不过目前没有在 Node 开放获取的 API,可以考虑加下,有兴趣可以提个 PR

killme2008 added a commit that referenced this issue Sep 17, 2022
killme2008 added a commit that referenced this issue Sep 17, 2022
* feat: add methods to Node for getting last log,last committed log and last applied log index #879

* fix: typo and comment
@LinHuiG
Copy link
Author

LinHuiG commented Sep 19, 2022

这些信息在FSMCallerImpl里面有,不过目前没有在Node开放获取的 API,可以考虑加下,有兴趣可以提个 PR

前两天比较忙,准备闲了回家做(用公司电脑怕有版权问题),今天看到你们都已经做完了,非常感谢~~

@fengjiachun fengjiachun mentioned this issue Dec 13, 2022
10 tasks
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

Successfully merging a pull request may close this issue.

2 participants