From 157200ef8375a91905efb3589393f2ef2b58b970 Mon Sep 17 00:00:00 2001 From: Akshay Sudheer <74921542+AkshayTSudheer@users.noreply.github.com> Date: Wed, 3 Mar 2021 09:38:55 +0530 Subject: [PATCH] HBASE-25402 Sorting order by start key or end key is not considering empty start key/end key (#2955) Signed-off-by: Duo Zhang Signed-off-by: Pankaj Kumar --- .../hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon | 7 ++++++- .../src/main/resources/hbase-webapps/master/table.jsp | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon index 388357d6eb0f..806eda9b5bdf 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon @@ -288,7 +288,12 @@ $(document).ready(function() type: "numeric" }); - $("#baseStatsTable").tablesorter(); + $("#baseStatsTable").tablesorter({ + headers: { + 1: {empty: 'emptyMin'}, + 2: {empty: 'emptyMax'} + } + }); $("#requestStatsTable").tablesorter({ headers: { 1: {sorter: 'separator'}, 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 b800e72f37b7..e0fd0d1dd192 100644 --- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp @@ -1240,7 +1240,9 @@ $(document).ready(function() 3: {sorter: 'separator'}, 4: {sorter: 'filesize'}, 5: {sorter: 'separator'}, - 6: {sorter: 'filesize'} + 6: {sorter: 'filesize'}, + 7: {empty: 'emptyMin'}, + 8: {empty: 'emptyMax'} } }); $("#metaTableBaseStatsTable").tablesorter({ @@ -1249,7 +1251,9 @@ $(document).ready(function() 3: {sorter: 'separator'}, 4: {sorter: 'filesize'}, 5: {sorter: 'separator'}, - 6: {sorter: 'filesize'} + 6: {sorter: 'filesize'}, + 7: {empty: 'emptyMin'}, + 8: {empty: 'emptyMax'} } }); $("#tableLocalityStatsTable").tablesorter({