Kota-SH commented on code in PR #7474:
URL: https://github.com/apache/hbase/pull/7474#discussion_r2608492375
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java:
##########
@@ -3117,13 +3117,11 @@ public ClusterMetrics
getClusterMetricsWithoutCoprocessor(EnumSet<Option> option
try {
Map<TableName, RegionStatesCount> tableRegionStatesCountMap =
new HashMap<>();
Map<String, TableDescriptor> tableDescriptorMap =
getTableDescriptors().getAll();
Review Comment:
Can we do a single call to HMaster.listTableDescriptors() instead of
calculating the tablenames twice?
It has internal filter to check if the tablename is present, so we wouldn't
need to manually filter again.
`List<TableDescriptor> tableDescriptors = listTableDescriptors(null, null,
null, true);`
--
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]