joshelser commented on a change in pull request #2843:
URL: https://github.com/apache/hbase/pull/2843#discussion_r830669632
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java
##########
@@ -804,4 +806,21 @@ public static String regionNamesToString(final
Collection<byte[]> regions) {
sb.append("]");
return sb.toString();
}
+
+ /**
+ * WEB UI
+ */
+ public synchronized Map<RegionInfo, ServerName> getRegionLocations(TableName
tableName) {
+ Map<RegionInfo, ServerName> tableRegions = new TreeMap<>();
+ for (RegionStateNode regionStateNode :
regionsMap.tailMap(tableName.getName()).values()) {
+ if (!regionStateNode.getTable().equals(tableName)) {
+ break;
+ }
+ if (regionStateNode.toRegionState().isSplitOrMerge()) {
+ continue;
+ }
Review comment:
We previously would see splitting/merged regions for a specific table,
right? The RegionState should be listed in the table of Regions for this HBase
table -- are not showing split/merge regions a big performance impact?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]