-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29531 Migrate RegionServer Status Jamon page back to JSP #7505
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
HBASE-29531 Migrate RegionServer Status Jamon page back to JSP #7505
Conversation
…e#7371) 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: apache#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)
|
This is a backport of #7371 to TestingTested this locally the same way as described here: #7371 (comment) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
org.apache.hadoop.hbase.client.TestShell test failed in the PR build but I think that is unrelated and it is successful locally. |
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)