Skip to content

Backport "HBASE-27814 Add support for dump and process metrics servlet in REST InfoServer" to branch-2.6 - #5729

Merged
NihalJain merged 1 commit into
apache:branch-2.6from
NihalJain:HBASE-27814_branch-2.6
Mar 1, 2024
Merged

Backport "HBASE-27814 Add support for dump and process metrics servlet in REST InfoServer" to branch-2.6#5729
NihalJain merged 1 commit into
apache:branch-2.6from
NihalJain:HBASE-27814_branch-2.6

Conversation

@NihalJain

Copy link
Copy Markdown
Contributor

Other changes:

  • Ensure info server stops during stop()
  • Extract header and footer. This would fix the log level page layout for rest web UI (See HBASE-20693)
  • Add hostname in the landing page instead of just port similar to other web UIs

@NihalJainNihalJain added the backport This PR is a back port of some issue or issues already committed to master label Feb 29, 2024
@NihalJain

Copy link
Copy Markdown
ContributorAuthor

Backports #5215. Sorry for the mess-up in previous PR.

FYI @ndimiduk@bbeaudreault

@NihalJain

Copy link
Copy Markdown
ContributorAuthor

Built code locally, extracted assembly, started a local cluster and started HBase REST server.

  1. Verified the landing page has the right page title, all the tabs are visible, hostname is displayed instead of portnumber and no error in page rendering.
  2. Verified /logLevel page is fixed with appropriate tabs, as expected and shown in HBASE-20693
  3. Verified newly added http://localhost:9093/processRest.jsp works as expected
  4. Verified newly added http://localhost:9093/dump page works as expected
  5. Verified all other pages like /logs, /jmx, /conf works as before
  6. Ran postman collection for basic CRUD test for REST at https://gist.github.com/NihalJain/7db91823bd140e41953a88eb3df56eae: All tests PASS
  • Screenshot 2024-02-29 at 9 09 16 PM

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 38sDocker mode activated.
-0 ⚠️yetus0m 5sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ branch-2.6 Compile Tests _
+1 💚mvninstall3m 2sbranch-2.6 passed
+1 💚compile0m 17sbranch-2.6 passed
+1 💚shadedjars5m 44sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 16sbranch-2.6 passed
_ Patch Compile Tests _
+1 💚mvninstall2m 48sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
+1 💚shadedjars5m 40spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 14sthe patch passed
_ Other Tests _
+1 💚unit3m 39shbase-rest in the patch passed.
24m 4s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#5729
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 39aad6a109f9 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 revisionbranch-2.6 / c8eb184
Default JavaEclipse Adoptium-11.0.17+8
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/testReport/
Max. process+thread count1871 (vs. ulimit of 30000)
modulesC: hbase-rest U: hbase-rest
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/console
versionsgit=2.34.1 maven=3.8.6
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 1sDocker mode activated.
-0 ⚠️yetus0m 6sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ branch-2.6 Compile Tests _
+1 💚mvninstall2m 50sbranch-2.6 passed
+1 💚compile0m 20sbranch-2.6 passed
+1 💚shadedjars5m 2sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 19sbranch-2.6 passed
_ Patch Compile Tests _
+1 💚mvninstall3m 25sthe patch passed
+1 💚compile0m 22sthe patch passed
+1 💚javac0m 22sthe patch passed
+1 💚shadedjars6m 7spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 16sthe patch passed
_ Other Tests _
+1 💚unit5m 1shbase-rest in the patch passed.
26m 1s
SubsystemReport/Notes
DockerClientAPI=1.44 ServerAPI=1.44 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#5729
Optional Testsjavac javadoc unit shadedjars compile
unameLinux c010f1fccae8 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionbranch-2.6 / c8eb184
Default JavaTemurin-1.8.0_352-b08
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/testReport/
Max. process+thread count1838 (vs. ulimit of 30000)
modulesC: hbase-rest U: hbase-rest
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/console
versionsgit=2.34.1 maven=3.8.6
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 38sDocker 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.
_ branch-2.6 Compile Tests _
+1 💚mvninstall3m 52sbranch-2.6 passed
+1 💚compile0m 33sbranch-2.6 passed
+1 💚checkstyle0m 12sbranch-2.6 passed
+1 💚spotless0m 55sbranch has no errors when running spotless:check.
+1 💚spotbugs0m 39sbranch-2.6 passed
_ Patch Compile Tests _
+1 💚mvninstall3m 39sthe patch passed
+1 💚compile0m 35sthe patch passed
-0 ⚠️javac0m 35shbase-rest generated 2 new + 164 unchanged - 2 fixed = 166 total (was 166)
+1 💚checkstyle0m 12sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 31sPatch does not cause any errors with Hadoop 2.10.2 or 3.3.6.
+1 💚spotless0m 51spatch has no errors when running spotless:check.
+1 💚spotbugs0m 52sthe patch passed
_ Other Tests _
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
27m 34s
SubsystemReport/Notes
DockerClientAPI=1.44 ServerAPI=1.44 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#5729
Optional Testsdupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile
unameLinux 39a6bf738fb0 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionbranch-2.6 / c8eb184
Default JavaEclipse Adoptium-11.0.17+8
javachttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/artifact/yetus-general-check/output/diff-compile-javac-hbase-rest.txt
Max. process+thread count78 (vs. ulimit of 30000)
modulesC: hbase-rest U: hbase-rest
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5729/1/console
versionsgit=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@NihalJain

NihalJain commented Mar 1, 2024

Copy link
Copy Markdown
ContributorAuthor

Hey @ndimiduk could you please review this. This is exact same change as #5215 which you had earlier reviewed.

@ndimiduk

Copy link
Copy Markdown
Member

Ran postman collection for basic CRUD test for REST at https://gist.github.com/NihalJain/7db91823bd140e41953a88eb3df56eae: All tests PASS

Do we not have this kind of basic functional test in the suite?

@ndimidukndimiduk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

FYI, I don't usually request review of backport PRs, unless there's something particularly tricky/different between the master and backport changes. In this case, the diffs look basically identical (by my scan), so I would just make the PR to verify the build-bot is happy and move on.

@NihalJain

Copy link
Copy Markdown
ContributorAuthor

Do we not have this kind of basic functional test in the suite?

I suppose we do but that must run inside minicluster. I run this by pointing to a node (local/distributed).

FYI, I don't usually request review of backport PRs, unless there's something particularly tricky/different between the master and backport changes.

Ah seems I am being extra cautious. Let me follow this approach going forward.

the diffs look basically identical

They are exactly same here.

Thanks for you review. I will merge this then.

@NihalJain
NihalJain merged commit 40a4a97 into apache:branch-2.6Mar 1, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backportThis PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@NihalJain@Apache-HBase@ndimiduk