-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29531 Migrate RegionServer Status Jamon page back to JSP #7491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is the 2/3 step of the Jamon to JSP migration: the Region Server Status page. Did the migration the same way as for the Master Status page: #6875 Migrated the Jamon code to JSP as close as possible. Extracted the duplicated `formatZKString` method to new java class: ZKStringFormatter and added unit tests. Changed the Region Server Status page back to `/regionserver.jsp`. Made sure that `/rs-status` redirects to `/regionserver.jsp`. Extracted the BlockCache inline CSS styles to `hbase.css` file. Also extracted the large BlockCache Hit Ratio periods paging JavaScript code to separate .js file. Introduced a `src/main/resources/hbase-webapps/common` directory where we can place common JSP files which are used by both Master and RegionServer JSP pages. This required to adjust the JSP compiler Maven Antrun plugin a bit. Extracted the inline tablesorter initialization JavaScript code to separate file. Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 7892207)
TestingTested this locally the same way as described here: #7371 (comment) Also configured HBase in pseudo-distributed mode and checked the RS Status page. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TestMasterStatusUtil.testGetFragmentationInfoTurnedOn failed in master nightly build Signed-off-by: Nihal Jain <[email protected]> Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 8ef271f)
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
|
This is the 2/3 step of the Jamon to JSP migration: the Region Server Status page.
Did the migration the same way as for the Master Status page: #6875
Migrated the Jamon code to JSP as close as possible. Extracted the duplicated
formatZKStringmethod to new java class: ZKStringFormatter and added unit tests.Changed the Region Server Status page back to
/regionserver.jsp. Made sure that/rs-statusredirects to/regionserver.jsp.Extracted the BlockCache inline CSS styles to
hbase.cssfile. Also extracted the large BlockCache Hit Ratio periods paging JavaScript code to separate .js file.Introduced a
src/main/resources/hbase-webapps/commondirectory where we can place common JSP files which are used by both Master and RegionServer JSP pages. This required to adjust the JSP compiler Maven Antrun plugin a bit.Extracted the inline tablesorter initialization JavaScript code to separate file.
Signed-off-by: Duo Zhang [email protected]
(cherry picked from commit 7892207)
[ADDENDUM] HBASE-29223 Fix TestMasterStatusUtil (#7416)
TestMasterStatusUtil.testGetFragmentationInfoTurnedOn failed in master nightly build
Signed-off-by: Nihal Jain [email protected]
Signed-off-by: Duo Zhang [email protected]
(cherry picked from commit 8ef271f)