You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/03/06 16:14:56 UTC

[hbase] branch master updated: HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b0485f  HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)
9b0485f is described below

commit 9b0485fb986e131e1527936a30a81a69e3ae661c
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Sun Mar 7 00:14:21 2021 +0800

    HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)
    
    Co-authored-by: Shuhei Yamasaki <ya...@oss.nttdata.com>
    Signed-off-by: Viraj Jasani <vj...@apache.org>
---
 .../src/main/resources/hbase-webapps/master/table.jsp       | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
index e0fd0d1..12bd2f0 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -1089,9 +1089,18 @@
 </table>
 
 <% }
-} catch(Exception ex) {
+} catch(Exception ex) { %>
+  Unknown Issue with Regions
+  <div onclick="document.getElementById('closeStackTrace').style.display='block';document.getElementById('openStackTrace').style.display='none';">
+    <a id="openStackTrace" style="cursor:pointer;"> Show StackTrace</a>
+  </div>
+  <div id="closeStackTrace" style="display:none;clear:both;">
+    <div onclick="document.getElementById('closeStackTrace').style.display='none';document.getElementById('openStackTrace').style.display='block';">
+      <a style="cursor:pointer;"> Close StackTrace</a>
+    </div>
+  <%
   for(StackTraceElement element : ex.getStackTrace()) {
-    %><%= StringEscapeUtils.escapeHtml4(element.toString()) %><%
+    %><%= StringEscapeUtils.escapeHtml4(element.toString() + "\n") %><%
   }
 }
 } // end else