Skip to content

HBASE-26532 Replication could choose the same named group if it is exist in the target cluster - #3911

Closed
thangTang wants to merge 1 commit into
apache:masterfrom
thangTang:HBASE-26532
Closed

HBASE-26532 Replication could choose the same named group if it is exist in the target cluster#3911
thangTang wants to merge 1 commit into
apache:masterfrom
thangTang:HBASE-26532

Conversation

@thangTang

Copy link
Copy Markdown
Contributor

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 11sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 45sMaven dependency ordering for branch
+1 💚mvninstall5m 14smaster passed
+1 💚compile1m 32smaster passed
+1 💚shadedjars8m 24sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 5smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
-1 ❌mvninstall1m 53sroot in the patch failed.
-1 ❌compile0m 38shbase-server in the patch failed.
-0 ⚠️javac0m 38shbase-server in the patch failed.
-1 ❌shadedjars6m 27spatch has 16 errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 36shbase-server generated 4 new + 21 unchanged - 0 fixed = 25 total (was 21)
_ Other Tests _
+1 💚unit1m 20shbase-client in the patch passed.
-1 ❌unit0m 40shbase-server in the patch failed.
32m 13s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 9632d439aee1 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/patch-compile-hbase-server.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/patch-compile-hbase-server.txt
shadedjarshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/patch-shadedjars.txt
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/testReport/
Max. process+thread count339 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 27sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 42sMaven dependency ordering for branch
+1 💚mvninstall5m 41smaster passed
+1 💚compile1m 44smaster passed
+1 💚shadedjars8m 17sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 11smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
-1 ❌mvninstall2m 13sroot in the patch failed.
-1 ❌compile0m 43shbase-server in the patch failed.
-0 ⚠️javac0m 43shbase-server in the patch failed.
-1 ❌shadedjars6m 15spatch has 16 errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 25shbase-server in the patch failed.
_ Other Tests _
+1 💚unit1m 33shbase-client in the patch passed.
-1 ❌unit0m 43shbase-server in the patch failed.
32m 24s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 3350eda3ecf3 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-11.0.10+9
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-compile-hbase-server.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-compile-hbase-server.txt
shadedjarshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-shadedjars.txt
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/testReport/
Max. process+thread count305 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 12sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 34sMaven dependency ordering for branch
+1 💚mvninstall6m 10smaster passed
+1 💚compile5m 20smaster passed
+1 💚checkstyle1m 55smaster passed
+1 💚spotbugs4m 1smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
-1 ❌mvninstall2m 22sroot in the patch failed.
-1 ❌compile0m 53shbase-server in the patch failed.
-0 ⚠️javac0m 53shbase-server in the patch failed.
-0 ⚠️checkstyle0m 34shbase-client: The patch generated 2 new + 17 unchanged - 0 fixed = 19 total (was 17)
-0 ⚠️checkstyle1m 19shbase-server: The patch generated 18 new + 8 unchanged - 0 fixed = 26 total (was 8)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌hadoopcheck2m 37sThe patch causes 16 errors with Hadoop v3.1.2.
-1 ❌hadoopcheck5m 25sThe patch causes 16 errors with Hadoop v3.2.2.
-1 ❌hadoopcheck8m 24sThe patch causes 16 errors with Hadoop v3.3.1.
-1 ❌spotbugs1m 34shbase-client generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
-1 ❌spotbugs0m 45shbase-server in the patch failed.
_ Other Tests _
+1 💚asflicense0m 24sThe patch does not generate ASF License warnings.
38m 59s
ReasonTests
FindBugsmodule:hbase-client
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.groupInfo from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 122]
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.rsgroup from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 124]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3911
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile
unameLinux 3e3abe2d52fe 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-compile-hbase-server.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-compile-hbase-server.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
hadoopcheckhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-javac-3.1.2.txt
hadoopcheckhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-javac-3.2.2.txt
hadoopcheckhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-javac-3.3.1.txt
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/new-spotbugs-hbase-client.html
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/artifact/yetus-general-check/output/patch-spotbugs-hbase-server.txt
Max. process+thread count86 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/1/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 2sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for branch
+1 💚mvninstall3m 53smaster passed
+1 💚compile1m 34smaster passed
+1 💚shadedjars8m 36sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 4smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
+1 💚mvninstall4m 2sthe patch passed
+1 💚compile1m 32sthe patch passed
+1 💚javac1m 32sthe patch passed
+1 💚shadedjars8m 27spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 41shbase-server generated 2 new + 21 unchanged - 0 fixed = 23 total (was 21)
_ Other Tests _
+1 💚unit1m 18shbase-client in the patch passed.
-1 ❌unit8m 21shbase-server in the patch failed.
43m 1s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 388fe08050f6 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/testReport/
Max. process+thread count1036 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 26sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for branch
+1 💚mvninstall4m 38smaster passed
+1 💚compile1m 43smaster passed
+1 💚shadedjars8m 24sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 8smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall4m 28sthe patch passed
+1 💚compile1m 42sthe patch passed
+1 💚javac1m 42sthe patch passed
+1 💚shadedjars8m 14spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 9sthe patch passed
_ Other Tests _
+1 💚unit1m 34shbase-client in the patch passed.
-1 ❌unit9m 2shbase-server in the patch failed.
44m 33s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux eeb96bb36c5d 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-11.0.10+9
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/testReport/
Max. process+thread count825 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 7sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for branch
+1 💚mvninstall4m 57smaster passed
+1 💚compile5m 22smaster passed
+1 💚checkstyle1m 55smaster passed
+1 💚spotbugs4m 2smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
+1 💚mvninstall4m 58sthe patch passed
+1 💚compile5m 13sthe patch passed
+1 💚javac5m 13sthe patch passed
-0 ⚠️checkstyle0m 34shbase-client: The patch generated 2 new + 17 unchanged - 0 fixed = 19 total (was 17)
-0 ⚠️checkstyle1m 21shbase-server: The patch generated 16 new + 8 unchanged - 0 fixed = 24 total (was 8)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck24m 50sPatch does not cause any errors with Hadoop 3.1.2 3.2.2 3.3.1.
-1 ❌spotbugs1m 39shbase-client generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
-1 ❌spotbugs3m 5shbase-server generated 3 new + 0 unchanged - 0 fixed = 3 total (was 0)
_ Other Tests _
+1 💚asflicense0m 27sThe patch does not generate ASF License warnings.
70m 28s
ReasonTests
FindBugsmodule:hbase-client
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.groupInfo from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 122]
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.rsgroup from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 124]
FindBugsmodule:hbase-server
Possible null pointer dereference of context in org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) Dereferenced at BaseReplicationEndpoint.java:context in org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) Dereferenced at BaseReplicationEndpoint.java:[line 60]
Write to static field org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.hostServerName from instance method org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) At BaseReplicationEndpoint.java:from instance method org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) At BaseReplicationEndpoint.java:[line 60]
Potentially dangerous use of non-short-circuit logic in org.apache.hadoop.hbase.replication.HBaseReplicationEndpoint.chooseSinks() At HBaseReplicationEndpoint.java:logic in org.apache.hadoop.hbase.replication.HBaseReplicationEndpoint.chooseSinks() At HBaseReplicationEndpoint.java:[line 411]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3911
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile
unameLinux 1fd3878a242f 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-general-check/output/new-spotbugs-hbase-client.html
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/artifact/yetus-general-check/output/new-spotbugs-hbase-server.html
Max. process+thread count86 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/2/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 7sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for branch
+1 💚mvninstall4m 53smaster passed
+1 💚compile5m 15smaster passed
+1 💚checkstyle1m 54smaster passed
+1 💚spotbugs4m 0smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall5m 5sthe patch passed
+1 💚compile5m 22sthe patch passed
+1 💚javac5m 22sthe patch passed
-0 ⚠️checkstyle0m 34shbase-client: The patch generated 2 new + 17 unchanged - 0 fixed = 19 total (was 17)
-0 ⚠️checkstyle1m 30shbase-server: The patch generated 17 new + 8 unchanged - 0 fixed = 25 total (was 8)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck24m 44sPatch does not cause any errors with Hadoop 3.1.2 3.2.2 3.3.1.
-1 ❌spotbugs1m 37shbase-client generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
-1 ❌spotbugs3m 4shbase-server generated 3 new + 0 unchanged - 0 fixed = 3 total (was 0)
_ Other Tests _
+1 💚asflicense0m 26sThe patch does not generate ASF License warnings.
70m 14s
ReasonTests
FindBugsmodule:hbase-client
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.groupInfo from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 122]
Write to static field org.apache.hadoop.hbase.zookeeper.ZNodePaths.rsgroup from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:from instance method new org.apache.hadoop.hbase.zookeeper.ZNodePaths(Configuration) At ZNodePaths.java:[line 124]
FindBugsmodule:hbase-server
Possible null pointer dereference of context in org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) Dereferenced at BaseReplicationEndpoint.java:context in org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) Dereferenced at BaseReplicationEndpoint.java:[line 60]
Write to static field org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.hostServerName from instance method org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) At BaseReplicationEndpoint.java:from instance method org.apache.hadoop.hbase.replication.BaseReplicationEndpoint.init(ReplicationEndpoint$Context) At BaseReplicationEndpoint.java:[line 60]
Potentially dangerous use of non-short-circuit logic in org.apache.hadoop.hbase.replication.HBaseReplicationEndpoint.chooseSinks() At HBaseReplicationEndpoint.java:logic in org.apache.hadoop.hbase.replication.HBaseReplicationEndpoint.chooseSinks() At HBaseReplicationEndpoint.java:[line 412]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3911
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile
unameLinux 779a443e8ed1 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-general-check/output/new-spotbugs-hbase-client.html
spotbugshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-general-check/output/new-spotbugs-hbase-server.html
Max. process+thread count86 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 7sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for branch
+1 💚mvninstall3m 52smaster passed
+1 💚compile1m 31smaster passed
+1 💚shadedjars8m 26sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 1smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall3m 53sthe patch passed
+1 💚compile1m 30sthe patch passed
+1 💚javac1m 30sthe patch passed
+1 💚shadedjars8m 19spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 38shbase-server generated 2 new + 21 unchanged - 0 fixed = 23 total (was 21)
_ Other Tests _
+1 💚unit1m 17shbase-client in the patch passed.
+1 💚unit155m 19shbase-server in the patch passed.
190m 11s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 887f8b346edf 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/artifact/yetus-jdk8-hadoop3-check/output/diff-javadoc-javadoc-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/testReport/
Max. process+thread count4757 (vs. ulimit of 30000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/3/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 11sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+1 💚mvninstall4m 35smaster passed
+1 💚compile3m 23smaster passed
+1 💚checkstyle1m 11smaster passed
+1 💚spotbugs2m 13smaster passed
_ Patch Compile Tests _
+1 💚mvninstall4m 20sthe patch passed
+1 💚compile3m 23sthe patch passed
+1 💚javac3m 23sthe patch passed
-0 ⚠️checkstyle1m 10shbase-server: The patch generated 2 new + 7 unchanged - 1 fixed = 9 total (was 8)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck21m 39sPatch does not cause any errors with Hadoop 3.1.2 3.2.2 3.3.1.
+1 💚spotbugs2m 24sthe patch passed
_ Other Tests _
+1 💚asflicense0m 14sThe patch does not generate ASF License warnings.
56m 32s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3911
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile
unameLinux 74a6e7e79b9e 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count86 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 28sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall4m 29smaster passed
+1 💚compile1m 13smaster passed
+1 💚shadedjars8m 14sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 41smaster passed
_ Patch Compile Tests _
+1 💚mvninstall4m 29sthe patch passed
+1 💚compile1m 15sthe patch passed
+1 💚javac1m 14sthe patch passed
+1 💚shadedjars8m 13spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 41sthe patch passed
_ Other Tests _
-1 ❌unit139m 33shbase-server in the patch failed.
171m 20s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 531045b9408b 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-11.0.10+9
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/testReport/
Max. process+thread count4234 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall4m 14smaster passed
+1 💚compile1m 3smaster passed
+1 💚shadedjars8m 19sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 40smaster passed
_ Patch Compile Tests _
+1 💚mvninstall3m 58sthe patch passed
+1 💚compile1m 3sthe patch passed
+1 💚javac1m 3sthe patch passed
+1 💚shadedjars8m 36spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 38sthe patch passed
_ Other Tests _
+1 💚unit149m 14shbase-server in the patch passed.
180m 17s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3911
Optional Testsjavac javadoc unit shadedjars compile
unameLinux fca40b4dfb59 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 19b0b2e
Default JavaAdoptOpenJDK-1.8.0_282-b08
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/testReport/
Max. process+thread count4639 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3911/4/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

// Ratio of total number of potential peer region servers to be used
private float ratio;

private float groupRatio;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here can add some descriptions/comments as well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please add some explaination.

}
};

public boolean getIsGroup() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. redundant space

if (children == null) {
return Collections.emptyList();
}
StringBuffer sb = new StringBuffer();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use StringBuilder here?

}
if (LOG.isDebugEnabled()) {
LOG.debug(
"Find " + addresses.size() + " child znodes from target cluster zk. " + sb.toString());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use parameterized logging, and elsewhere.

LOG.debug("Use replication rsgroup choose policy...");
}
Map<String, String> serverNameHostPortMapping = new HashMap<>();
for (String serverName : children) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can reuse parseServerNameFromList(children) ? then the followings can just user ServerName#getHost and ServerName#getPort.

getGroupServerListFromTargetZkCluster(groupName, zkw, serverNameHostPortMapping);
if (serverList.size() > 0) {
// if target cluster open group balancer, serverList must has server(s)
LOG.debug("group list > 0");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can log which group > 0?

try {
rsGroupInfo = getRSGroupInfoOfServer(conn.toConnection(), hostServerName.getAddress());
}catch (IOException e) {
e.printStackTrace();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still neede.printStackTrace();?

}
else {
// if not, choose sinkers from all regionservers
LOG.debug("target group list <= 0");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto. Please add check LOG.isDebugEnabled() {} and elsewhere

LOG.debug("groupInfos == null");
}
return Collections.emptyList();
}else{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. spaces between else {} are needed


int numSinks = (int) Math.ceil(slaveAddresses.size() * actualRatio);
this.sinkServers = slaveAddresses.subList(0, numSinks);
StringBuffer sb = new StringBuffer();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

@Reidddddd

Copy link
Copy Markdown
Contributor

ping @Apache9, you probably would want to take a look at this one?

@Apache9Apache9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems there are still some legacy code, which is for the old rs group implementation. Better provide a simple design doc first, we can discuss the approach first, and then you can modify the PR here.

Thanks~

*/
@InterfaceAudience.Private
public interface ReplicationService {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid touching unnecessary file.

// Ratio of total number of potential peer region servers to be used
private float ratio;

private float groupRatio;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please add some explaination.


private List<ServerName> sinkServers = new ArrayList<>(0);

private static ThreadLocal<AtomicBoolean> threadLocal = new ThreadLocal<AtomicBoolean>() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use AtomicBoolean for a thread local variable?

Configuration conf = HBaseConfiguration.create();

/** if use other balancer, return all regionservers */
if (!conf.get(HConstants.HBASE_MASTER_LOADBALANCER_CLASS)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On master this is not the case now. The balancer will always be a RSGroupBasedLoadBalancer, if we do not enable rs group feature, DisabledRSGroupInfoManager will be used and there will be only one group, which will act as there is no rs group. So I think here we should check for RSGroupUtil.isRSGroupEnabled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And another problem is do we need to check the configuration here? I think it is the version at the source cluster, but we need to check the target cluster?

return addresses;
}

protected List<ServerName> getGroupServerListFromTargetZkCluster(String groupName,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On master branch we do not use zk for storing the rs group any more...

@thangTang

Copy link
Copy Markdown
ContributorAuthor

Seems there are still some legacy code, which is for the old rs group implementation. Better provide a simple design doc first, we can discuss the approach first, and then you can modify the PR here.

Thanks~

Yes, actually i did this on 1.x...
Try to upload a doc later.
Thanks.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thangTang@Apache-HBase@Reidddddd@Apache9