You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/06/07 00:50:45 UTC
[jira] Created: (HBASE-671) New UI page displaying all regions in a
table should be sorted
New UI page displaying all regions in a table should be sorted
--------------------------------------------------------------
Key: HBASE-671
URL: https://issues.apache.org/jira/browse/HBASE-671
Project: Hadoop HBase
Issue Type: Improvement
Components: build
Reporter: stack
Priority: Minor
Sort the regions displayed in the new regions-in-a-table page
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HBASE-671) New UI page displaying all regions in
a table should be sorted
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack reassigned HBASE-671:
---------------------------
Assignee: stack
> New UI page displaying all regions in a table should be sorted
> --------------------------------------------------------------
>
> Key: HBASE-671
> URL: https://issues.apache.org/jira/browse/HBASE-671
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: build
> Reporter: stack
> Assignee: stack
> Priority: Minor
>
> Sort the regions displayed in the new regions-in-a-table page
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-671) New UI page displaying all regions in
a table should be sorted
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-671.
-------------------------
Resolution: Fixed
Fix Version/s: 0.2.0
Committed below:
{code}
Index: src/java/org/apache/hadoop/hbase/client/HTable.java
===================================================================
--- src/java/org/apache/hadoop/hbase/client/HTable.java (revision 664083)
+++ src/java/org/apache/hadoop/hbase/client/HTable.java (working copy)
@@ -21,10 +21,12 @@
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.TreeMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -383,8 +385,8 @@
* @throws IOException
*/
public Map<HRegionInfo, HServerAddress> getRegionsInfo() throws IOException {
- final HashMap<HRegionInfo, HServerAddress> regionMap =
- new HashMap<HRegionInfo, HServerAddress>();
+ final Map<HRegionInfo, HServerAddress> regionMap =
+ new TreeMap<HRegionInfo, HServerAddress>();
MetaScannerVisitor visitor = new MetaScannerVisitor() {
public boolean processRow(@SuppressWarnings("unused") RowResult rowResult,
{code}
> New UI page displaying all regions in a table should be sorted
> --------------------------------------------------------------
>
> Key: HBASE-671
> URL: https://issues.apache.org/jira/browse/HBASE-671
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: build
> Reporter: stack
> Assignee: stack
> Priority: Minor
> Fix For: 0.2.0
>
>
> Sort the regions displayed in the new regions-in-a-table page
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.