You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gx...@apache.org on 2018/09/05 01:42:34 UTC
[2/2] hbase git commit: HBASE-20892 [UI] Start / End keys are empty
on table.jsp
HBASE-20892 [UI] Start / End keys are empty on table.jsp
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4bf31343
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4bf31343
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4bf31343
Branch: refs/heads/branch-2.0
Commit: 4bf3134397dc55932812aebd6f1832fa3e172800
Parents: 99d62d0
Author: Guangxu Cheng <gu...@gmail.com>
Authored: Wed Sep 5 09:21:38 2018 +0800
Committer: Guangxu Cheng <gu...@gmail.com>
Committed: Wed Sep 5 09:30:16 2018 +0800
----------------------------------------------------------------------
.../src/main/resources/hbase-webapps/master/table.jsp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/4bf31343/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
----------------------------------------------------------------------
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 d7844df..c9b16c6 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp
@@ -80,7 +80,7 @@
final String escaped_fqtn = StringEscapeUtils.escapeHtml4(fqtn);
String sortKey = request.getParameter("sort");
String reverse = request.getParameter("reverse");
- final boolean reverseOrder = (reverse==null||!reverse.equals("false"));
+ final boolean reverseOrder = (reverse != null && reverse.equals("true"));
String showWholeKey = request.getParameter("showwhole");
final boolean showWhole = (showWholeKey!=null && showWholeKey.equals("true"));
Table table;
@@ -443,7 +443,7 @@ Sort As
<option value="locality">Locality</option>
</select>
Ascending<input type="checkbox" id="ascending" value="Ascending" style="margin-right:10px">
-ShowDetailName&Start/End Key<input type="checkbox" id="showWhole" style="margin-right:10px">
+ShowDetailName<input type="checkbox" id="showWhole" style="margin-right:10px">
<input type="button" id="submit" value="Reorder" onClick="reloadAsSort()" style="font-size: 12pt; width: 5em; margin-bottom: 5px" class="btn">
<p>
@@ -622,8 +622,8 @@ ShowDetailName&Start/End Key<input type="checkbox" id="showWhole" style="margin-
<td><%= fileCount%></td>
<td><%= memSize%></td>
<td><%= locality%></td>
- <td><%= escapeXml(showWhole?Bytes.toStringBinary(regionInfo.getStartKey()):"-")%></td>
- <td><%= escapeXml(showWhole?Bytes.toStringBinary(regionInfo.getEndKey()):"-")%></td>
+ <td><%= escapeXml(Bytes.toStringBinary(regionInfo.getStartKey()))%></td>
+ <td><%= escapeXml(Bytes.toStringBinary(regionInfo.getEndKey()))%></td>
<%
if (withReplica) {
%>