Skip to content

HBASE-29223 Migrate Master Status Jamon page back to JSP (#6875) - #7468

Merged
PDavid merged 1 commit into
apache:branch-3from
PDavid:HBASE-29223-jamon-jsp-MasterStatus-branch-3
Nov 24, 2025
Merged

HBASE-29223 Migrate Master Status Jamon page back to JSP (#6875)#7468
PDavid merged 1 commit into
apache:branch-3from
PDavid:HBASE-29223-jamon-jsp-MasterStatus-branch-3

Conversation

@PDavid

Copy link
Copy Markdown
Contributor

The JSP code is equivalent to the Jamon code, just changed the syntax back to JSP. Request attributes are used to transfer data between JSP pages. Tried to preserve the code as much as possible but did some changes:

Sub-templates were usually extracted to separate JSP file (and included with <jsp:include), in some case it was extracted as Java method.

Extracted some sections from master page to separate JSP pages:

  • Software Attributes
  • Warnings

Extracted the long JavaScript from the master page which executes on page load to separate JS file.

Extracted some frequently used static methods to a new util class: MasterStatusUtil. Also added unit tests for the static methods in MasterStatusUtil.

Changed the Master Status page back to /master.jsp again. Now made sure that /master-status redirects to /master.jsp.

(cherry picked from commit be40011)

The JSP code is equivalent to the Jamon code, just changed the syntax back to JSP.
Request attributes are used to transfer data between JSP pages.
Tried to preserve the code as much as possible but did some changes:
Sub-templates were usually extracted to separate JSP file (and included with `<jsp:include`), in some case it was extracted as Java method.
Extracted some sections from master page to separate JSP pages:
- Software Attributes
- Warnings
Extracted the long JavaScript from the master page which executes on page load to separate JS file.
Extracted some frequently used static methods to a new util class: `MasterStatusUtil`. Also added unit tests for the static methods in `MasterStatusUtil`.
Changed the Master Status page back to `/master.jsp` again. Now made sure that `/master-status` redirects to `/master.jsp`.
Signed-off-by: Istvan Toth <stoty@apache.org>
(cherry picked from commit be40011)
@PDavidPDavid added the backport This PR is a back port of some issue or issues already committed to master label Nov 18, 2025
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+0 🆗jshint0m 0sjshint was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ branch-3 Compile Tests _
+1 💚mvninstall3m 36sbranch-3 passed
+1 💚compile3m 25sbranch-3 passed
+1 💚checkstyle0m 37sbranch-3 passed
+1 💚spotbugs1m 44sbranch-3 passed
+1 💚spotless0m 51sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚mvninstall3m 6sthe patch passed
+1 💚compile3m 24sthe patch passed
-0 ⚠️javac3m 24s/results-compile-javac-hbase-server.txthbase-server generated 6 new + 187 unchanged - 6 fixed = 193 total (was 193)
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle0m 37shbase-server: The patch generated 0 new + 0 unchanged - 2 fixed = 0 total (was 2)
+1 💚xmllint0m 0sNo new issues.
+1 💚spotbugs1m 41sthe patch passed
+1 💚hadoopcheck12m 7sPatch does not cause any errors with Hadoop 3.3.6 3.4.1.
+1 💚spotless0m 45spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 12sThe patch does not generate ASF License warnings.
40m 33s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7468/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#7468
Optional Testsdupname asflicense javac codespell detsecrets spotless spotbugs checkstyle compile hadoopcheck hbaseanti xmllint jshint
unameLinux 72b809eec462 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-3 / a66a454
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count85 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7468/1/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3 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 36sDocker mode activated.
-0 ⚠️yetus0m 4sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-3 Compile Tests _
+1 💚mvninstall3m 42sbranch-3 passed
+1 💚compile0m 59sbranch-3 passed
+1 💚javadoc0m 29sbranch-3 passed
+1 💚shadedjars6m 13sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚mvninstall3m 6sthe patch passed
+1 💚compile0m 59sthe patch passed
+1 💚javac0m 59sthe patch passed
+1 💚javadoc0m 27sthe patch passed
+1 💚shadedjars6m 6spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit210m 37shbase-server in the patch passed.
238m 13s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7468/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#7468
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 905e243b9a0d 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-3 / a66a454
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7468/1/testReport/
Max. process+thread count4186 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7468/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.

@PDavid

PDavid commented Nov 24, 2025

Copy link
Copy Markdown
ContributorAuthor

This is a backport of #6875 to branch-3. Cherry-picked the master commit and it applied cleanly.

Testing

Tested this the same way, as I did for the master version:

image

@PDavid
PDavid marked this pull request as ready for review November 24, 2025 10:24
@PDavid
PDavid requested review from Apache9 and stotyNovember 24, 2025 10:24
@stoty

Copy link
Copy Markdown
Contributor

The backports don't need separate reviews, unless they require a different approach.
If it works, feel free to merge this.

@PDavid

Copy link
Copy Markdown
ContributorAuthor

The backports don't need separate reviews, unless they require a different approach. If it works, feel free to merge this.

I see, many thanks, I'll keep in mind. Since the PR build is green I'll merge this.

@PDavid
PDavid merged commit a66f0c6 into apache:branch-3Nov 24, 2025
1 check passed
@PDavid
PDavid deleted the HBASE-29223-jamon-jsp-MasterStatus-branch-3 branch November 24, 2025 12:36
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

@PDavid@Apache-HBase@stoty