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:01 UTC
[hbase] branch branch-2.3 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.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new 0246216 HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)
0246216 is described below
commit 02462166e87f1bafc7298e517540501b2bc41b2a
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 c917f4f..87667e0 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -1023,9 +1023,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();