Skip to content

HBASE-28832 Upgrade from bootstrap 3.4.1 to non vulnerable version 5.3.3 - #6526

Merged
petersomogyi merged 2 commits into
apache:branch-2.6from
PDavid:HBASE-28832-bootstrap-upgrade-5-branch-2.6
Mar 24, 2025
Merged

HBASE-28832 Upgrade from bootstrap 3.4.1 to non vulnerable version 5.3.3#6526
petersomogyi merged 2 commits into
apache:branch-2.6from
PDavid:HBASE-28832-bootstrap-upgrade-5-branch-2.6

Conversation

@PDavid

Copy link
Copy Markdown
Contributor

This is the backport of #6490 for branch-2.6.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@PDavid

Copy link
Copy Markdown
ContributorAuthor

This will branch will need to be rebased (or cherry-picked again) when #6550 is merged.

@PDavid
PDavidforce-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2.6 branch from 59553ca to fd2e275CompareJanuary 8, 2025 14:31
@PDavid

Copy link
Copy Markdown
ContributorAuthor

OK, this branch is rebased. I cherry-picked again the whole Bootstrap upgrade master commit. Unfortunately this is still not a 100% clean cherry-pick. I had to resolve some minor conflicts in MasterStatusTmpl.jamon and table.jsp but this is very-very close to the original master patch: #6490

Also added the small fix for TestInfoServersACL.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@PDavid

Copy link
Copy Markdown
ContributorAuthor

The TestAcidGuaranteesWithAdaptivePolicy test failed in the PR build - it seems unrelated to me.

@PDavid
PDavid marked this pull request as ready for review January 9, 2025 08:50
@NihalJain

Copy link
Copy Markdown
Contributor

As per response in mail thread, we do not want this for upcoming releases right? Let's hold on merging this until release.

@PDavid

Copy link
Copy Markdown
ContributorAuthor

As per response in mail thread, we do not want this for upcoming releases right? Let's hold on merging this until release.

@NihalJain thanks for pointing out. 👍 Yes, you are right.

@NihalJainNihalJain added the backport This PR is a back port of some issue or issues already committed to master label Jan 9, 2025
@PDavid
PDavidforce-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2.6 branch from fd2e275 to 9973b95CompareMarch 1, 2025 11:40
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@PDavid

Copy link
Copy Markdown
ContributorAuthor

I think this backport PR is now ready to merge. What do you think @NihalJain ?

@NihalJain

Copy link
Copy Markdown
Contributor

I think this backport PR is now ready to merge. What do you think @NihalJain ?

Yes +1 from my end.

Hi, @Apache9, @apurtell Should we go ahead and merge this to branch-2.6? We are already done with our 2.6.2 releases.

@Apache9

Copy link
Copy Markdown
Contributor

We have already merged the PR for other branches?

@NihalJain

Copy link
Copy Markdown
Contributor

We have already merged the PR for other branches?

Yes it is in place for branch-2+

…3.3 (apache#6490)
First we upgraded to Bootstrap v4 - this was the majority of the changes - and then I upgraded to Bootstrap 5.3.3 - which is the latest non-vulnerable version according to https://security.snyk.io/package/npm/bootstrap/3.4.1
Changes were based on the migration documentation:
- https://getbootstrap.com/docs/4.6/migration/
- https://getbootstrap.com/docs/5.3/migration/
Most of the changes are related to navbar-s, tabs and forms.
The new Bootstrap look has a bit bigger font sizes but it is still OK in my opinion.
Bootstrap v5 is not requiring JQuery anymore but we have some JQuery plugins (jquery.tablesorter.min.js, tab.js) which still need it so I left JQuery in.
- Removed bootstrap-theme.min.css and Glyphicons icon font because these are not present anymore in newer Bootstrap versions.
- Upgraded checked in Bootstrap CSS and JS files to v4.
- Moved some inline CSS styles to hbase.css file (DRY).
- The page-header class was dropped in Bootstrap v4 so added page-header small grey color to hbase.css.
- Removed some unused imports in JSP files.
- Improved the styling of the Log Level form
- Replaced hbase_logo_small.png under thrift module with the hbase-server one. Reason: to make sure that they are the same size (this under thrift was smaller).
- Upgraded checked in Bootstrap CSS and JS files to v5.
- Migrated navbars for v5:
- Navbars now require a container within (to drastically simplify spacing requirements and CSS required).
- The .active class can no longer be applied to .nav-items, it must be applied directly on .nav-links.
- Migrated data attributes. Data attributes for all Bootstrap JavaScript plugins are now namespaced to help distinguish Bootstrap functionality from third parties and your own code. For example, we use data-bs-toggle instead of data-toggle.
- form-inline was dropped in v5, so inline forms had to be styled with grid and utilities instead.
- Added the favicon of the HBase website to the web UI pages.
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain.cs@gmail.com>
(cherry picked from commit 744ce13)
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
@PDavid
PDavidforce-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2.6 branch from 9973b95 to 33e578cCompareMarch 19, 2025 07:57
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec1m 7sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+0 🆗jshint0m 0sjshint was not available.
+0 🆗shelldocs0m 0sShelldocs was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ branch-2.6 Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for branch
+1 💚mvninstall4m 34sbranch-2.6 passed
+1 💚compile8m 44sbranch-2.6 passed
+1 💚checkstyle1m 38sbranch-2.6 passed
+1 💚spotbugs16m 12sbranch-2.6 passed
+1 💚spotless1m 0sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗mvndep0m 17sMaven dependency ordering for patch
+1 💚mvninstall4m 35sthe patch passed
+1 💚compile9m 12sthe patch passed
+1 💚javac9m 12sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle1m 50sthe patch passed
+1 💚shellcheck0m 0sNo new issues.
+1 💚spotbugs13m 37sthe patch passed
+1 💚hadoopcheck20m 20sPatch does not cause any errors with Hadoop 2.10.2 or 3.3.6 3.4.0.
+1 💚spotless1m 8spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense1m 4sThe patch does not generate ASF License warnings.
89m 6s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6526
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless jshint shellcheck shelldocs
unameLinux 1f14d8a82b82 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 / 33e578c
Default JavaEclipse Adoptium-11.0.23+9
Max. process+thread count181 (vs. ulimit of 30000)
modulesC: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3 shellcheck=0.8.0
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 🆗reexec1m 13sDocker mode activated.
-0 ⚠️yetus0m 7sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2.6 Compile Tests _
+0 🆗mvndep0m 20sMaven dependency ordering for branch
+1 💚mvninstall5m 11sbranch-2.6 passed
+1 💚compile3m 21sbranch-2.6 passed
+1 💚javadoc5m 2sbranch-2.6 passed
+1 💚shadedjars8m 41sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall4m 19sthe patch passed
+1 💚compile2m 55sthe patch passed
+1 💚javac2m 55sthe patch passed
+1 💚javadoc4m 36sthe patch passed
+1 💚shadedjars8m 38spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌unit292m 19s/patch-unit-root.txtroot in the patch failed.
345m 11s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#6526
Optional Testsjavac javadoc unit compile shadedjars
unameLinux a1c3939cd234 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 / 33e578c
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/testReport/
Max. process+thread count4942 (vs. ulimit of 30000)
modulesC: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/console
versionsgit=2.34.1 maven=3.9.8
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 🆗reexec1m 3sDocker mode activated.
-0 ⚠️yetus0m 6sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2.6 Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for branch
+1 💚mvninstall3m 59sbranch-2.6 passed
+1 💚compile2m 47sbranch-2.6 passed
+1 💚javadoc4m 1sbranch-2.6 passed
+1 💚shadedjars6m 42sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall3m 5sthe patch passed
+1 💚compile2m 10sthe patch passed
+1 💚javac2m 10sthe patch passed
+1 💚javadoc2m 59sthe patch passed
+1 💚shadedjars6m 17spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌unit312m 23s/patch-unit-root.txtroot in the patch failed.
353m 36s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#6526
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 6d1302ad3a54 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 / 33e578c
Default JavaEclipse Adoptium-11.0.23+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/testReport/
Max. process+thread count7905 (vs. ulimit of 30000)
modulesC: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/console
versionsgit=2.34.1 maven=3.9.8
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 47sDocker mode activated.
-0 ⚠️yetus0m 5sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2.6 Compile Tests _
+0 🆗mvndep0m 10sMaven dependency ordering for branch
+1 💚mvninstall2m 33sbranch-2.6 passed
+1 💚compile1m 43sbranch-2.6 passed
+1 💚javadoc2m 45sbranch-2.6 passed
+1 💚shadedjars5m 20sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall2m 23sthe patch passed
+1 💚compile1m 44sthe patch passed
+1 💚javac1m 44sthe patch passed
-0 ⚠️javadoc1m 32s/results-javadoc-javadoc-root.txtroot generated 10 new + 90 unchanged - 10 fixed = 100 total (was 100)
+1 💚shadedjars5m 15spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit406m 11sroot in the patch passed.
439m 44s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#6526
Optional Testsjavac javadoc unit compile shadedjars
unameLinux e10398d126d7 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 / 33e578c
Default JavaTemurin-1.8.0_412-b08
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/testReport/
Max. process+thread count7971 (vs. ulimit of 30000)
modulesC: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6526/5/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@petersomogyi

Copy link
Copy Markdown
Contributor

I checked the UI in standalone mode and haven't noticed any issues.

@petersomogyi
petersomogyi merged commit 98da4a0 into apache:branch-2.6Mar 24, 2025
@PDavid
PDavid deleted the HBASE-28832-bootstrap-upgrade-5-branch-2.6 branch March 24, 2025 10:17
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.

5 participants

@PDavid@Apache-HBase@NihalJain@Apache9@petersomogyi