-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16411 RBF: RouterId is NULL when disable RourterRpcServer #3878
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
Changes from 2 commits
c4abff0
dc03d2d
832bc38
e208d71
6a6a1da
54130c8
4a01abb
288c192
0555d4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,6 @@ public class TestRouterHeartbeatService { | |
| @Before | ||
| public void setup() throws Exception { | ||
| router = new Router(); | ||
| router.setRouterId(routerId); | ||
| Configuration conf = new Configuration(); | ||
| conf.setInt(RBFConfigKeys.DFS_ROUTER_CACHE_TIME_TO_LIVE_MS, 1); | ||
| Configuration routerConfig = | ||
|
|
@@ -76,6 +75,8 @@ public void setup() throws Exception { | |
| curatorFramework.start(); | ||
| routerConfig.set(CommonConfigurationKeys.ZK_ADDRESS, connectStr); | ||
| router.init(routerConfig); | ||
| // set custom routerid after router.init() | ||
| router.setRouterId(routerId); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldnt init already trigger this with the new code change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If set the specific routerid,we use the specific routerid; otherwise we use the routerid generated by Router.serviceInit. |
||
| router.start(); | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.