HBASE-23578 [UI] Master UI shows long stack traces when table is broken (#3014)

Co-authored-by: Shuhei Yamasaki <yamasakisua@oss.nttdata.com>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Duo Zhang 2021-03-07 00:14:21 +08:00 committed by GitHub
parent dd4a11e421
commit 9b0485fb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -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