hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1033787 - in /hbase/trunk: CHANGES.txt src/main/resources/hbase-webapps/regionserver/regionserver.jsp
Date Thu, 11 Nov 2010 00:38:32 GMT
Author: stack
Date: Thu Nov 11 00:38:32 2010
New Revision: 1033787

URL: http://svn.apache.org/viewvc?rev=1033787&view=rev
Log:
HBASE-3222 Regionserver region listing in UI is no longer ordered

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/resources/hbase-webapps/regionserver/regionserver.jsp

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1033787&r1=1033786&r2=1033787&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Nov 11 00:38:32 2010
@@ -675,6 +675,7 @@ Release 0.90.0 - Unreleased
                failing (Gary via jgray)
    HBASE-3216  Move HBaseFsck from client to util
    HBASE-3219  Split parents are reassigned on restart and on disable/enable
+   HBASE-3222  Regionserver region listing in UI is no longer ordered
 
 
   IMPROVEMENTS

Modified: hbase/trunk/src/main/resources/hbase-webapps/regionserver/regionserver.jsp
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/resources/hbase-webapps/regionserver/regionserver.jsp?rev=1033787&r1=1033786&r2=1033787&view=diff
==============================================================================
--- hbase/trunk/src/main/resources/hbase-webapps/regionserver/regionserver.jsp (original)
+++ hbase/trunk/src/main/resources/hbase-webapps/regionserver/regionserver.jsp Thu Nov 11
00:38:32 2010
@@ -18,7 +18,7 @@
     e.printStackTrace();
   }
   RegionServerMetrics metrics = regionServer.getMetrics();
-  Collection<HRegionInfo> onlineRegions = regionServer.getOnlineRegions();
+  List<HRegionInfo> onlineRegions = regionServer.getOnlineRegions();
   int interval = regionServer.getConfiguration().getInt("hbase.regionserver.msginterval",
3000)/1000;
 
 %><?xml version="1.0" encoding="UTF-8" ?>
@@ -49,7 +49,9 @@
 <% if (onlineRegions != null && onlineRegions.size() > 0) { %>
 <table>
 <tr><th>Region Name</th><th>Start Key</th><th>End Key</th><th>Metrics</th></tr>
-<%   for (HRegionInfo r: onlineRegions) { 
+<%   
+  Collections.sort(onlineRegions);
+  for (HRegionInfo r: onlineRegions) { 
         HServerLoad.RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
  %>
 <tr><td><%= r.getRegionNameAsString() %></td>



Mime
View raw message