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/07 13:42:28 UTC
[hbase] branch branch-2.4 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 branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 7f4ad3c HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)
7f4ad3c is described below
commit 7f4ad3cfb273c5efb6262ea214c2fbbb97de5c7a
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Sun Mar 7 21:36:06 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 c7771d3..9c31d22 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -1123,9 +1123,18 @@
</tbody>
</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") %><%
}
} finally {
connection.close();