[
https://issues.apache.org/jira/browse/HBASE-28332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang resolved HBASE-28332.
-------------------------------
Fix Version/s: 2.6.0
2.4.18
2.5.8
3.0.0-beta-2
Hadoop Flags: Reviewed
Assignee: guluo
Resolution: Fixed
Pushed to all active branches.
Thanks [~guluo] for contributing!
> Type conversion is no need in method CompactionChecker.chore()
> --------------------------------------------------------------
>
> Key: HBASE-28332
> URL: https://issues.apache.org/jira/browse/HBASE-28332
> Project: HBase
> Issue Type: Improvement
> Components: Compaction
> Reporter: guluo
> Assignee: guluo
> Priority: Minor
> Fix For: 2.6.0, 2.4.18, 2.5.8, 3.0.0-beta-2
>
>
> In method CompactionChecker.chore(), we iterate the map named onlineRegions
> ,which the type of value is HRegion, So we do not need to type conversion
> from Region to HRegion.
>
> {code:java}
> private final Map<String, HRegion> onlineRegions = new ConcurrentHashMap<>();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)