hbase icon indicating copy to clipboard operation
hbase copied to clipboard

HBASE-28411 Remove direct dependency on Curator

Open stoty opened this issue 1 year ago • 15 comments

stoty avatar Feb 29 '24 14:02 stoty

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 24s 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.
_ master Compile Tests _
+0 :ok: mvndep 0m 18s Maven dependency ordering for branch
+1 :green_heart: mvninstall 2m 54s master passed
+1 :green_heart: compile 4m 57s master passed
+1 :green_heart: checkstyle 1m 4s master passed
+1 :green_heart: spotless 0m 42s branch has no errors when running spotless:check.
+1 :green_heart: spotbugs 7m 39s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 44s the patch passed
+1 :green_heart: compile 4m 49s the patch passed
-0 :warning: javac 4m 49s root generated 1 new + 922 unchanged - 0 fixed = 923 total (was 922)
+1 :green_heart: checkstyle 1m 7s the patch passed
+1 :green_heart: whitespace 0m 0s The patch has no whitespace issues.
+1 :green_heart: xml 0m 3s The patch has no ill-formed XML file.
+1 :green_heart: hadoopcheck 5m 7s Patch does not cause any errors with Hadoop 3.3.6.
-1 :x: spotless 0m 39s patch has 32 errors when running spotless:check, run spotless:apply to fix.
-1 :x: spotbugs 0m 36s hbase-examples generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
-1 :x: spotbugs 7m 3s root generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
+1 :green_heart: asflicense 0m 26s The patch does not generate ASF License warnings.
48m 18s
Reason Tests
FindBugs module:hbase-examples
Inconsistent synchronization of org.apache.hadoop.hbase.coprocessor.example.ZooKeeperScanPolicyObserver$ZKDataHolder.data; locked 50% of time Unsynchronized access at ZooKeeperScanPolicyObserver.java:50% of time Unsynchronized access at ZooKeeperScanPolicyObserver.java:[line 155]
org.apache.hadoop.hbase.coprocessor.example.ZooKeeperScanPolicyObserver$ZKDataHolder.open() concatenates strings using + in a loop At ZooKeeperScanPolicyObserver.java:in a loop At ZooKeeperScanPolicyObserver.java:[line 106]
FindBugs module:root
Inconsistent synchronization of org.apache.hadoop.hbase.coprocessor.example.ZooKeeperScanPolicyObserver$ZKDataHolder.data; locked 50% of time Unsynchronized access at ZooKeeperScanPolicyObserver.java:50% of time Unsynchronized access at ZooKeeperScanPolicyObserver.java:[line 155]
org.apache.hadoop.hbase.coprocessor.example.ZooKeeperScanPolicyObserver$ZKDataHolder.open() concatenates strings using + in a loop At ZooKeeperScanPolicyObserver.java:in a loop At ZooKeeperScanPolicyObserver.java:[line 106]
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests dupname asflicense javac hadoopcheck spotless xml compile spotbugs hbaseanti checkstyle
uname Linux bcd017f8321d 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-11.0.17+8
javac https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-general-check/output/diff-compile-javac-root.txt
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-general-check/output/patch-spotless.txt
spotbugs https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-general-check/output/new-spotbugs-hbase-examples.html
spotbugs https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-general-check/output/new-spotbugs-root.html
Max. process+thread count 175 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/console
versions git=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Feb 29 '24 16:02 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 28s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 22s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 1s master passed
+1 :green_heart: compile 2m 0s master passed
+1 :green_heart: shadedjars 5m 30s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 14s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 13s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 48s the patch passed
+1 :green_heart: compile 2m 1s the patch passed
+1 :green_heart: javac 2m 1s the patch passed
+1 :green_heart: shadedjars 5m 25s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 16s the patch passed
_ Other Tests _
+1 :green_heart: unit 262m 44s root in the patch passed.
295m 46s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux da84bde8cf3c 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-17.0.10+7
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/testReport/
Max. process+thread count 8642 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Feb 29 '24 20:02 Apache-HBase

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 1m 8s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 18s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 3s master passed
+1 :green_heart: compile 2m 12s master passed
+1 :green_heart: shadedjars 6m 46s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 47s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 16s Maven dependency ordering for patch
+1 :green_heart: mvninstall 3m 43s the patch passed
+1 :green_heart: compile 2m 48s the patch passed
+1 :green_heart: javac 2m 48s the patch passed
+1 :green_heart: shadedjars 6m 5s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 3m 47s the patch passed
_ Other Tests _
-1 :x: unit 310m 28s root in the patch failed.
350m 12s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux f55de26d295a 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-11.0.17+8
unit https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-root.txt
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/testReport/
Max. process+thread count 8096 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Feb 29 '24 21:02 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 41s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 20s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 4s master passed
+1 :green_heart: compile 2m 8s master passed
+1 :green_heart: shadedjars 6m 32s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 18s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 15s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 54s the patch passed
+1 :green_heart: compile 2m 2s the patch passed
+1 :green_heart: javac 2m 2s the patch passed
+1 :green_heart: shadedjars 6m 12s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 29s the patch passed
_ Other Tests _
+1 :green_heart: unit 403m 41s root in the patch passed.
439m 48s
Subsystem Report/Notes
Docker ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux 51b9c48517b9 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Temurin-1.8.0_352-b08
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/testReport/
Max. process+thread count 8405 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/1/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Feb 29 '24 22:02 Apache-HBase

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 28s 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.
_ master Compile Tests _
+0 :ok: mvndep 0m 28s Maven dependency ordering for branch
+1 :green_heart: mvninstall 4m 32s master passed
+1 :green_heart: compile 5m 46s master passed
+1 :green_heart: checkstyle 1m 5s master passed
+1 :green_heart: spotless 0m 42s branch has no errors when running spotless:check.
+1 :green_heart: spotbugs 7m 40s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for patch
+1 :green_heart: mvninstall 2m 42s the patch passed
+1 :green_heart: compile 4m 49s the patch passed
-0 :warning: javac 4m 49s root generated 2 new + 922 unchanged - 0 fixed = 924 total (was 922)
-0 :warning: checkstyle 1m 6s root: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 :green_heart: whitespace 0m 0s The patch has no whitespace issues.
+1 :green_heart: xml 0m 3s The patch has no ill-formed XML file.
+1 :green_heart: hadoopcheck 6m 3s Patch does not cause any errors with Hadoop 3.3.6.
-1 :x: spotless 0m 40s patch has 23 errors when running spotless:check, run spotless:apply to fix.
+1 :green_heart: spotbugs 8m 8s the patch passed
_ Other Tests _
+1 :green_heart: asflicense 0m 26s The patch does not generate ASF License warnings.
52m 11s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests dupname asflicense javac hadoopcheck spotless xml compile spotbugs hbaseanti checkstyle
uname Linux 137cfe2e7bc0 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-11.0.17+8
javac https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-general-check/output/diff-compile-javac-root.txt
checkstyle https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-general-check/output/patch-spotless.txt
Max. process+thread count 176 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/console
versions git=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Feb 29 '24 23:02 Apache-HBase

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 30s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 20s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 35s master passed
+1 :green_heart: compile 2m 21s master passed
+1 :green_heart: shadedjars 6m 0s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 49s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 14s Maven dependency ordering for patch
+1 :green_heart: mvninstall 3m 3s the patch passed
+1 :green_heart: compile 2m 8s the patch passed
+1 :green_heart: javac 2m 8s the patch passed
+1 :green_heart: shadedjars 5m 53s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 59s the patch passed
_ Other Tests _
-1 :x: unit 261m 38s root in the patch failed.
296m 55s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux fe1533328c53 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-17.0.10+7
unit https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-jdk17-hadoop3-check/output/patch-unit-root.txt
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/testReport/
Max. process+thread count 5163 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Mar 01 '24 03:03 Apache-HBase

:confetti_ball: +1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 32s Docker mode activated.
-0 :warning: yetus 0m 2s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 20s Maven dependency ordering for branch
+1 :green_heart: mvninstall 4m 6s master passed
+1 :green_heart: compile 2m 33s master passed
+1 :green_heart: shadedjars 6m 42s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 44s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 19s Maven dependency ordering for patch
+1 :green_heart: mvninstall 3m 33s the patch passed
+1 :green_heart: compile 2m 32s the patch passed
+1 :green_heart: javac 2m 32s the patch passed
+1 :green_heart: shadedjars 6m 41s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 58s the patch passed
_ Other Tests _
+1 :green_heart: unit 330m 39s root in the patch passed.
369m 35s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux 8d055edc85c3 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Eclipse Adoptium-11.0.17+8
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/testReport/
Max. process+thread count 8499 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Mar 01 '24 04:03 Apache-HBase

:broken_heart: -1 overall

Vote Subsystem Runtime Comment
+0 :ok: reexec 0m 33s Docker mode activated.
-0 :warning: yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 :ok: mvndep 0m 22s Maven dependency ordering for branch
+1 :green_heart: mvninstall 3m 17s master passed
+1 :green_heart: compile 2m 8s master passed
+1 :green_heart: shadedjars 6m 19s branch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 2m 1s master passed
_ Patch Compile Tests _
+0 :ok: mvndep 0m 15s Maven dependency ordering for patch
+1 :green_heart: mvninstall 3m 1s the patch passed
+1 :green_heart: compile 2m 8s the patch passed
+1 :green_heart: javac 2m 8s the patch passed
+1 :green_heart: shadedjars 6m 4s patch has no errors when building our shaded downstream artifacts.
+1 :green_heart: javadoc 1m 54s the patch passed
_ Other Tests _
-1 :x: unit 419m 37s root in the patch failed.
452m 59s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR https://github.com/apache/hbase/pull/5726
Optional Tests javac javadoc unit shadedjars compile
uname Linux 9c7ec70286e1 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 1c41e861f8
Default Java Temurin-1.8.0_352-b08
unit https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-root.txt
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/testReport/
Max. process+thread count 5281 (vs. ulimit of 30000)
modules C: hbase-endpoint hbase-examples . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5726/2/console
versions git=2.34.1 maven=3.8.6
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Apache-HBase avatar Mar 01 '24 06:03 Apache-HBase

What is the problem of using curator here? This is just an example, with curator the code could be simpler...

Apache9 avatar Mar 01 '24 14:03 Apache9

  • IMO it's always better not to have a dependency than it is to have one, when it is avoidable.
  • Curator libs are added to the HBase classpath. Curator libs are also present on the Hadoop Classpath, which is another opportunity for runtime classpath version conflicts.
  • It interacts with the Curator version from Hadoop in Maven projects
  • Increases the distribution size
  • It is not necessary for any HBase functionality

Even if we ignore everything above, there is also a completely bogus curator-client dependency in hbase-endpoint, which gets added transitively to every project that depends on that. We should fix that one at the very least.

stoty avatar Mar 01 '24 16:03 stoty

For me, this is in hbase-example, we should use the simpler way to show users how to use a feature, curator is much simpler than using zookeeper directly right? Maybe we could discuss whether to include hbase-examples in our binary releases.

And I agree that we should not include curator dependency in hbase-endpoint. We can find the related commits of adding this dependency in hbase-endpoint to see why we introduce it there.

Thanks.

Apache9 avatar Mar 02 '24 02:03 Apache9

Curator can be simpler whan used to implement some of the more advanced synchronization constructs. In this case all we do is read and watch a simple value, and I would argue that my version is easier to read than the curator one, as it has one a few less levels of redirection and abstraction, and does not need familiarity with Curator.

We can also save a few lines by moving the Znode creation into the test, which would make more sense anyway, as it is supposed to be set by an external service.

The only real advantage of using Curator here is that it should handle the loss of ZK connection better, which is relevant if we intend this as drop-in production feature, but not as an API example.

In general I like the idea of not shipping the examples JAR in the assembly. I recall using it once to test REST server connectivity, but in general I think the advanatages outweigh the possible inconvenience (it can still be downloaded from maven)

If we keep curator and remove examples from the assembly, I would go one step further, and also the version management for curator, and only add it in examples.

stoty avatar Mar 02 '24 06:03 stoty

I think we can start a discussion thread on the dev list about whether to include Hanse-examples in our binary releases. And we still need to dig why we add curator in hbase-endpoint, for me I do not think we should add it as a dependency there.

Apache9 avatar Mar 02 '24 15:03 Apache9

Created new JIRA with analysis for hbase-endpoint: HBASE-28415

stoty avatar Mar 04 '24 09:03 stoty

Is this even a good example?

I don't know offhand the original contribution of this example but it looks suspiciously like the old coprocessor we install in our production at dayjob to manage cell retention for backups, which has been deprecated and is to be replaced with an Apache Phoenix based solution. The Phoenix solution is also a coprocessor based solution but it is a compaction override that implements Phoenix policies for TTL too. Anyway, this backup coprocessor never used Curator. Taking the dependency on Curator to do something so simple may not be a good example.

apurtell avatar Mar 04 '24 17:03 apurtell