-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29093 Load userSnapshots.jsp only on master status page #7034
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-29093 Load userSnapshots.jsp only on master status page #7034
Conversation
…#6627) * HBASE-29093 Load userSnapshots.jsp only on master status page Before HBase UI always tried to load userSnapshots.jsp with an AJAX request on all UI pages - NOK. This happened even on RegionServer UI or REST UI where this call always fail with HTTP 500. From now on HBase UI only loads userSnapshots.jsp when the Snapshots tab (div with tab_userSnapshots ID) exists on the page. * HBASE-29093 Minor JS improvements - Use const instead of var as var has so many problems (global context, etc). - Fixed whitespace. Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nihal Jain <nihaljain@apache.org Signed-off-by: Peter Somogyi <psomogyi@apache.org (cherry picked from commit fa22ba4)
|
This is a backport of #6627 on Tested this locally the same way as described here: #6627 (comment) We backported the patch to every active branch but I just noticed that we forgot to backport this to What do you think? |
|
🎊 +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. |
…#6627) (apache#7034) * HBASE-29093 Load userSnapshots.jsp only on master status page Before HBase UI always tried to load userSnapshots.jsp with an AJAX request on all UI pages - NOK. This happened even on RegionServer UI or REST UI where this call always fail with HTTP 500. From now on HBase UI only loads userSnapshots.jsp when the Snapshots tab (div with tab_userSnapshots ID) exists on the page. * HBASE-29093 Minor JS improvements - Use const instead of var as var has so many problems (global context, etc). - Fixed whitespace. (cherry picked from commit fa22ba4) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nihal Jain <nihaljain@apache.org Signed-off-by: Peter Somogyi <psomogyi@apache.org
Before HBase UI always tried to load
userSnapshots.jspwith an AJAX request on all UI pages - NOK.This happened even on RegionServer UI or REST UI where this call always failed with HTTP 500.
From now on HBase UI only loads
userSnapshots.jspwhen the Snapshots tab (div withtab_userSnapshotsID) exists on the page.Also did a minor improvement to
tab.js: useconstinstead ofvarasvarhas so many problems:Also fixed a whitespace.