-
Notifications
You must be signed in to change notification settings - Fork 219
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
获取不到serverPort属性 #6
Comments
我也遇到这个问题,我是这样处理的。在idea 的应用配置( public static void main(String[] args) throws Throwable {
Integer port = Integer.valueOf(args[0]);
System.setProperty("serverPort", port + "");
main0();
} |
您好,感谢分享解决办法!我在测试时按照你的方法配置了五个启动项,但是仍然不能成功选举出leader,因为ElectionTask RPC仍然会fail,我不太清楚这是哪里出现了问题,还望有空能指教一下 2023-01-26 19:29:06,878 Raft thread ERROR [cn.think.in.java.impl.DefaultNode:lambda$run$3:581] - ElectionTask RPC Fail , URL : localhost:8775 |
谢谢您
923749851
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年6月27日(星期二) 晚上7:15
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [stateIs0/lu-raft-kv] 获取不到serverPort属性 (#6)
我的没有更改什么代码,可以正常选出 Leader 哎
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
大佬你好。学习raft中,运行RaftNodeBootStrap时,System.getProperty("serverPort")报错,提示为空,获取不到该属性,这是在哪里设置这个属性的,请有空解答下,谢谢
The text was updated successfully, but these errors were encountered: