Skip to content

Commit f08e1c5

Browse files
adwk67nightkr
andauthored
Update hbase/stackable/patches/2.6.1/0005-Allow-overriding-ipc-bind-port-and-use-alternative-p.patch
Co-authored-by: Natalie Klestrup Röijezon <[email protected]>
1 parent ceba85b commit f08e1c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase/stackable/patches/2.6.1/0005-Allow-overriding-ipc-bind-port-and-use-alternative-p.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ index 3fe5abac27..6d40db77ae 100644
2727

2828
+ @Override
2929
+ protected int getUseThisPortInstead(Configuration conf) {
30-
+ return conf.getInt(MASTER_PORT, this.rpcServices.getSocketAddress().getPort());
30+
+ int port = conf.getInt(MASTER_PORT, 0);
31+
+ return port != 0 ? port : this.rpcServices.getSocketAddress().getPort();
3132
+ }
3233
+
3334
private void registerConfigurationObservers() {

0 commit comments

Comments
 (0)