You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/02/15 17:25:39 UTC
[GitHub] [hbase] saintstack opened a new pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
saintstack opened a new pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173
…listener enabled
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#discussion_r383449553
##########
File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java
##########
@@ -165,8 +165,7 @@ public void newDead(ServerName sn) {
}
}, conf, listenerClass);
} catch (IOException e) {
- LOG.warn("Failed to create ClusterStatusListener, not a critical problem, ignoring...",
- e);
+ LOG.warn("Failed create of ClusterStatusListener, not a critical, ignoring...", e);
Review comment:
nit `s/not a critical,/not critical,/`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#discussion_r383451426
##########
File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterStatusPublisher.java
##########
@@ -126,6 +127,11 @@ public ClusterStatusPublisher(HMaster master, Configuration conf,
connected = true;
}
+ @Override
+ public String toString() {
+ return super.toString() + ", publisher=" + this.publisher + ", connected=" + this.connected;
Review comment:
Likewise with the `ToStringBuilder`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#issuecomment-595502029
:confetti_ball: **+1 overall**
| Vote | Subsystem | Runtime | Comment |
|:----:|----------:|--------:|:--------|
| +0 :ok: | reexec | 1m 43s | Docker mode activated. |
| -0 :warning: | yetus | 0m 6s | Unprocessed flag(s): --brief-report-file --findbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck |
||| _ Prechecks _ |
||| _ branch-2 Compile Tests _ |
| +0 :ok: | mvndep | 0m 15s | Maven dependency ordering for branch |
| +1 :green_heart: | mvninstall | 5m 27s | branch-2 passed |
| +1 :green_heart: | compile | 1m 46s | branch-2 passed |
| +1 :green_heart: | shadedjars | 4m 16s | branch has no errors when building our shaded downstream artifacts. |
| +1 :green_heart: | javadoc | 1m 20s | branch-2 passed |
||| _ Patch Compile Tests _ |
| +0 :ok: | mvndep | 0m 16s | Maven dependency ordering for patch |
| +1 :green_heart: | mvninstall | 5m 2s | the patch passed |
| +1 :green_heart: | compile | 1m 48s | the patch passed |
| +1 :green_heart: | javac | 1m 48s | the patch passed |
| +1 :green_heart: | shadedjars | 4m 16s | patch has no errors when building our shaded downstream artifacts. |
| +1 :green_heart: | javadoc | 1m 20s | the patch passed |
||| _ Other Tests _ |
| +1 :green_heart: | unit | 1m 6s | hbase-common in the patch passed. |
| +1 :green_heart: | unit | 2m 2s | hbase-client in the patch passed. |
| +1 :green_heart: | unit | 62m 20s | hbase-server in the patch passed. |
| | | 95m 33s | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | Client=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile |
| GITHUB PR | https://github.com/apache/hbase/pull/1173 |
| Optional Tests | javac javadoc unit shadedjars compile |
| uname | Linux 848786c4184b 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | dev-support/hbase-personality.sh |
| git revision | branch-2 / 797a13436c |
| Default Java | 1.8.0_232 |
| Test Results | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/testReport/ |
| Max. process+thread count | 8104 (vs. ulimit of 10000) |
| modules | C: hbase-common hbase-client hbase-server U: . |
| Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/console |
| versions | git=2.17.1 maven=2018-06-17T18:33:14Z) |
| Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
This message was automatically generated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#discussion_r383450855
##########
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/ScheduledChore.java
##########
@@ -373,7 +373,7 @@ protected synchronized void cleanup() {
@InterfaceAudience.Private
@Override
public String toString() {
- return "[ScheduledChore: Name: " + getName() + " Period: " + getPeriod() + " Unit: "
- + getTimeUnit() + "]";
+ return "ScheduledChore name=" + getName() + ", period=" + getPeriod() +
Review comment:
If you're going to tweak `toString()` methods, you mind converting over use Commons's `ToStringBuilder` with the `ShortPrefixToStringStyle` ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#issuecomment-586634738
:broken_heart: **-1 overall**
| Vote | Subsystem | Runtime | Comment |
|:----:|----------:|--------:|:--------|
| +0 :ok: | reexec | 0m 37s | Docker mode activated. |
||| _ Prechecks _ |
| +1 :green_heart: | dupname | 0m 0s | No case conflicting files found. |
| +1 :green_heart: | hbaseanti | 0m 0s | Patch does not have any anti-patterns. |
| +1 :green_heart: | @author | 0m 0s | The patch does not contain any @author tags. |
| -0 :warning: | test4tests | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. |
||| _ branch-2 Compile Tests _ |
| +0 :ok: | mvndep | 0m 15s | Maven dependency ordering for branch |
| +1 :green_heart: | mvninstall | 5m 12s | branch-2 passed |
| +1 :green_heart: | compile | 1m 49s | branch-2 passed |
| +1 :green_heart: | checkstyle | 2m 11s | branch-2 passed |
| +1 :green_heart: | shadedjars | 4m 16s | branch has no errors when building our shaded downstream artifacts. |
| +1 :green_heart: | javadoc | 1m 23s | branch-2 passed |
| +0 :ok: | spotbugs | 3m 27s | Used deprecated FindBugs config; considering switching to SpotBugs. |
| +1 :green_heart: | findbugs | 5m 25s | branch-2 passed |
||| _ Patch Compile Tests _ |
| +0 :ok: | mvndep | 0m 14s | Maven dependency ordering for patch |
| +1 :green_heart: | mvninstall | 4m 56s | the patch passed |
| +1 :green_heart: | compile | 1m 49s | the patch passed |
| +1 :green_heart: | javac | 1m 49s | the patch passed |
| -1 :x: | checkstyle | 0m 34s | hbase-client: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0) |
| -1 :x: | checkstyle | 1m 7s | hbase-server: The patch generated 1 new + 104 unchanged - 0 fixed = 105 total (was 104) |
| +1 :green_heart: | whitespace | 0m 0s | The patch has no whitespace issues. |
| +1 :green_heart: | shadedjars | 4m 19s | patch has no errors when building our shaded downstream artifacts. |
| +1 :green_heart: | hadoopcheck | 15m 30s | Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2. |
| +1 :green_heart: | javadoc | 1m 23s | the patch passed |
| +1 :green_heart: | findbugs | 5m 26s | the patch passed |
||| _ Other Tests _ |
| +1 :green_heart: | unit | 1m 8s | hbase-common in the patch passed. |
| +1 :green_heart: | unit | 2m 12s | hbase-client in the patch passed. |
| -1 :x: | unit | 65m 55s | hbase-server in the patch failed. |
| +1 :green_heart: | asflicense | 1m 44s | The patch does not generate ASF License warnings. |
| | | 134m 50s | |
| Reason | Tests |
|-------:|:------|
| Failed junit tests | hadoop.hbase.client.replication.TestReplicationAdminWithTwoDifferentZKClusters |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | Client=19.03.6 Server=19.03.6 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/out/Dockerfile |
| GITHUB PR | https://github.com/apache/hbase/pull/1173 |
| Optional Tests | dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile |
| uname | Linux 5fda13476a0b 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1173/out/precommit/personality/provided.sh |
| git revision | branch-2 / bcbeb8ec6d |
| Default Java | 1.8.0_181 |
| checkstyle | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/out/diff-checkstyle-hbase-client.txt |
| checkstyle | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/out/diff-checkstyle-hbase-server.txt |
| unit | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/out/patch-unit-hbase-server.txt |
| Test Results | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/testReport/ |
| Max. process+thread count | 7873 (vs. ulimit of 10000) |
| modules | C: hbase-common hbase-client hbase-server U: . |
| Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/console |
| versions | git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11 |
| Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
This message was automatically generated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#discussion_r383449278
##########
File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java
##########
@@ -165,8 +165,7 @@ public void newDead(ServerName sn) {
}
}, conf, listenerClass);
} catch (IOException e) {
- LOG.warn("Failed to create ClusterStatusListener, not a critical problem, ignoring...",
- e);
+ LOG.warn("Failed create of ClusterStatusListener, not a critical, ignoring...", e);
Review comment:
Why WARN and not DEBUG?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#issuecomment-595488866
:confetti_ball: **+1 overall**
| Vote | Subsystem | Runtime | Comment |
|:----:|----------:|--------:|:--------|
| +0 :ok: | reexec | 0m 37s | Docker mode activated. |
||| _ Prechecks _ |
| +1 :green_heart: | dupname | 0m 1s | No case conflicting files found. |
| +1 :green_heart: | hbaseanti | 0m 0s | Patch does not have any anti-patterns. |
| +1 :green_heart: | @author | 0m 0s | The patch does not contain any @author tags. |
||| _ branch-2 Compile Tests _ |
| +0 :ok: | mvndep | 0m 14s | Maven dependency ordering for branch |
| +1 :green_heart: | mvninstall | 5m 22s | branch-2 passed |
| +1 :green_heart: | checkstyle | 2m 10s | branch-2 passed |
| +0 :ok: | spotbugs | 2m 58s | Used deprecated FindBugs config; considering switching to SpotBugs. |
| +1 :green_heart: | findbugs | 4m 39s | branch-2 passed |
||| _ Patch Compile Tests _ |
| +0 :ok: | mvndep | 0m 13s | Maven dependency ordering for patch |
| +1 :green_heart: | mvninstall | 4m 57s | the patch passed |
| -0 :warning: | checkstyle | 0m 34s | hbase-client: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0) |
| -0 :warning: | checkstyle | 1m 10s | hbase-server: The patch generated 1 new + 104 unchanged - 0 fixed = 105 total (was 104) |
| +1 :green_heart: | whitespace | 0m 0s | The patch has no whitespace issues. |
| +1 :green_heart: | hadoopcheck | 15m 49s | Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2. |
| +1 :green_heart: | findbugs | 4m 58s | the patch passed |
||| _ Other Tests _ |
| +1 :green_heart: | asflicense | 0m 38s | The patch does not generate ASF License warnings. |
| | | 48m 47s | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | Client=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-general-check/output/Dockerfile |
| GITHUB PR | https://github.com/apache/hbase/pull/1173 |
| Optional Tests | dupname asflicense spotbugs findbugs hadoopcheck hbaseanti checkstyle |
| uname | Linux 886f482a1e94 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | dev-support/hbase-personality.sh |
| git revision | branch-2 / 797a13436c |
| checkstyle | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt |
| checkstyle | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt |
| Max. process+thread count | 93 (vs. ulimit of 10000) |
| modules | C: hbase-common hbase-client hbase-server U: . |
| Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/console |
| versions | git=2.17.1 maven=2018-06-17T18:33:14Z) findbugs=3.1.11 |
| Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
This message was automatically generated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
Apache-HBase commented on issue #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#issuecomment-595488000
:broken_heart: **-1 overall**
| Vote | Subsystem | Runtime | Comment |
|:----:|----------:|--------:|:--------|
| +0 :ok: | reexec | 1m 15s | Docker mode activated. |
| -0 :warning: | yetus | 0m 6s | Unprocessed flag(s): --brief-report-file --findbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck |
||| _ Prechecks _ |
||| _ branch-2 Compile Tests _ |
| +0 :ok: | mvndep | 0m 14s | Maven dependency ordering for branch |
| +1 :green_heart: | mvninstall | 7m 25s | branch-2 passed |
| +1 :green_heart: | compile | 2m 16s | branch-2 passed |
| +1 :green_heart: | shadedjars | 5m 14s | branch has no errors when building our shaded downstream artifacts. |
| -0 :warning: | javadoc | 0m 31s | hbase-client in branch-2 failed. |
| -0 :warning: | javadoc | 0m 18s | hbase-common in branch-2 failed. |
| -0 :warning: | javadoc | 0m 45s | hbase-server in branch-2 failed. |
||| _ Patch Compile Tests _ |
| +0 :ok: | mvndep | 0m 17s | Maven dependency ordering for patch |
| +1 :green_heart: | mvninstall | 7m 9s | the patch passed |
| +1 :green_heart: | compile | 2m 16s | the patch passed |
| +1 :green_heart: | javac | 2m 16s | the patch passed |
| +1 :green_heart: | shadedjars | 5m 11s | patch has no errors when building our shaded downstream artifacts. |
| -0 :warning: | javadoc | 0m 17s | hbase-common in the patch failed. |
| -0 :warning: | javadoc | 0m 28s | hbase-client in the patch failed. |
| -0 :warning: | javadoc | 0m 40s | hbase-server in the patch failed. |
||| _ Other Tests _ |
| -1 :x: | unit | 1m 2s | hbase-common in the patch failed. |
| +1 :green_heart: | unit | 2m 14s | hbase-client in the patch passed. |
| -1 :x: | unit | 6m 49s | hbase-server in the patch failed. |
| | | 45m 54s | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | Client=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile |
| GITHUB PR | https://github.com/apache/hbase/pull/1173 |
| Optional Tests | javac javadoc unit shadedjars compile |
| uname | Linux 9197c75c9172 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | dev-support/hbase-personality.sh |
| git revision | branch-2 / 797a13436c |
| Default Java | 2020-01-14 |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt |
| javadoc | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt |
| unit | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-common.txt |
| unit | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt |
| Test Results | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/testReport/ |
| Max. process+thread count | 661 (vs. ulimit of 10000) |
| modules | C: hbase-common hbase-client hbase-server U: . |
| Console output | https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1173/1/console |
| versions | git=2.17.1 maven=2018-06-17T18:33:14Z) |
| Powered by | Apache Yetus 0.11.1 https://yetus.apache.org |
This message was automatically generated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
ndimiduk commented on a change in pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173#discussion_r383453022
##########
File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterStatusPublisher.java
##########
@@ -285,27 +295,33 @@ public void connect(Configuration conf) throws IOException {
}
ni = NetworkInterface.getByInetAddress(localAddress);
}
-
Bootstrap b = new Bootstrap();
b.group(group)
.channelFactory(new HBaseDatagramChannelFactory<Channel>(NioDatagramChannel.class, family))
.option(ChannelOption.SO_REUSEADDR, true)
.handler(new ClusterMetricsEncoder(isa));
-
try {
+ LOG.debug("Channel bindAddress={}, networkInterface={}, INA={}", bindAddress, ni, ina);
channel = (DatagramChannel) b.bind(bindAddress, 0).sync().channel();
channel.joinGroup(ina, ni, null, channel.newPromise()).sync();
channel.connect(isa).sync();
+ // Set into configuration in case many networks available. Do this for tests so that
+ // server and client use same Interface (presuming share same Configuration).
+ // TestAsyncTableRSCrashPublish was failing when connected to VPN because extra networks
+ // available with Master binding on one Interface and client on another so test failed.
+ if (ni != null) {
+ conf.set(HConstants.STATUS_MULTICAST_NI_NAME, ni.getName());
Review comment:
What is the expected class/thread that needs this configuration change downstream from here? This seems like it introduces a timing race between this chore thread and the presumed viewer, which may or may not start after this code is hit.
Is there a better approach to take? This strikes me as fishing for side-effects with global mutable state.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [hbase] saintstack merged pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
Posted by GitBox <gi...@apache.org>.
saintstack merged pull request #1173: HBASE-23851 Log networks and bind addresses when multicast publisher/…
URL: https://github.com/apache/hbase/pull/1173
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services