-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
业务状态机中onConfigurationCommitted方法,接收到的参数有时会是0.0.0.0:0的格式,像是bug #931
Comments
|
(1)所有节点的 jraft 版本一致,均为1.3.10.bugfix_2 期待您的答复,十分感谢! |
增加节点都有日志的,整体自己看下日志,跟踪下 确认添加的信息是正确的。 加密的事情,没有经验,不了解。如果怀疑的话,就先不加密,排除下看看。 |
如果没有更多反馈,先关闭了。 |
Your question
自己的业务状态机:public class ******StateMachine extends StateMachineAdapter{}中,
@OverRide了public void onConfigurationCommitted(final Configuration conf) {}方法,
目的是conf发生变化时,触发onConfigurationCommitted方法,
将接收到的最新conf持久化到MySQL数据库,以实现一次性配置后,即使服务重启,也不需要重新配置集群节点。
但是有个问题:
onConfigurationCommitted接收到的参数,大多数时候正常,例如:192.168.0.1:8080,192.168.0.2:8080,192.168.0.3:8080
偶尔会出现错误格式,暂时没找到规律,例如:0.0.0.0:0,0.0.0.0:0,0.0.0.0:0
请大佬帮忙确认,这是bug吗?如何避免或者解决问题?谢谢!
Describe your question clearly
Your scenes
Describe your use scenes (why need this feature)
Your advice
Describe the advice or solution you'd like
Environment
java -version
):1.8.0_291uname -a
):Linux servernode 5.10.0-60.56.0.84.oe2203.x86_64 typo error #1 SMP Thu Sep 15 06:37:59 UTC 2022 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: