Skip to content

Revert "HBASE-28921 Skip bundling hbase-webapps folder in jars" - #6382

Merged
NihalJain merged 1 commit into
masterfrom
revert-6368-HBASE-28921
Oct 21, 2024
Merged

Revert "HBASE-28921 Skip bundling hbase-webapps folder in jars"#6382
NihalJain merged 1 commit into
masterfrom
revert-6368-HBASE-28921

Conversation

@NihalJain

@NihalJainNihalJain commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

Reverts #6368

I see some test failures during debugging some other code. Apparently we use hbase-webapps folder to create an instance hbase local cluster for tests and the folder needs to be present in classpath. I am seeing following since we have removed hbase-webapps from hbase-server jar and hence tests in other modules can't find it in classpath now:

Caused by: java.io.FileNotFoundException: hbase-webapps/master not found in CLASSPATH
at org.apache.hadoop.hbase.http.HttpServer.getWebAppsPath(HttpServer.java:1086)
at org.apache.hadoop.hbase.http.HttpServer.getWebAppsPath(HttpServer.java:1073)
at org.apache.hadoop.hbase.http.HttpServer.<init>(HttpServer.java:589)
at org.apache.hadoop.hbase.http.HttpServer$Builder.build(HttpServer.java:431)
at org.apache.hadoop.hbase.http.InfoServer.<init>(InfoServer.java:92)
at org.apache.hadoop.hbase.HBaseServerBase.putUpWebUI(HBaseServerBase.java:345)
at org.apache.hadoop.hbase.HBaseServerBase.<init>(HBaseServerBase.java:307)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:511)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124)
... 40 more

Fix is to include hbase-webapps in classpath for each impacted module's test resources. Reverting this for now to unblock any new PRs which may get impacted due to this change. Will raise another PR to handle the above case along with current change.

@NihalJain
NihalJain merged commit 67f01c5 into masterOct 21, 2024
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 28sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for branch
+1 💚mvninstall3m 14smaster passed
+1 💚compile4m 23smaster passed
+1 💚spotless0m 45sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall3m 0sthe patch passed
+1 💚compile4m 28sthe patch passed
+1 💚javac4m 28sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚xmllint0m 0sNo new issues.
+1 💚hadoopcheck11m 40sPatch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚spotless0m 44spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 25sThe patch does not generate ASF License warnings.
36m 47s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6382/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6382
Optional Testsdupname asflicense javac codespell detsecrets xmllint hadoopcheck spotless compile
unameLinux 39122720321d 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / ece0fdb
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count87 (vs. ulimit of 30000)
modulesC: hbase-server hbase-thrift hbase-rest U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6382/1/console
versionsgit=2.34.1 maven=3.9.8 xmllint=20913
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 26sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for branch
+1 💚mvninstall2m 57smaster passed
+1 💚compile1m 36smaster passed
+1 💚javadoc1m 11smaster passed
+1 💚shadedjars5m 29sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall2m 54sthe patch passed
+1 💚compile1m 36sthe patch passed
+1 💚javac1m 36sthe patch passed
+1 💚javadoc1m 9sthe patch passed
+1 💚shadedjars5m 26spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌unit209m 21s/patch-unit-hbase-server.txthbase-server in the patch failed.
+1 💚unit6m 56shbase-thrift in the patch passed.
+1 💚unit3m 50shbase-rest in the patch passed.
248m 24s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6382/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#6382
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 4bea67a25296 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / ece0fdb
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6382/1/testReport/
Max. process+thread count4865 (vs. ulimit of 30000)
modulesC: hbase-server hbase-thrift hbase-rest U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6382/1/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

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.

2 participants

@NihalJain@Apache-HBase