xicm commented on a change in pull request #4294:
URL: https://github.com/apache/hbase/pull/4294#discussion_r837312789
##########
File path:
hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/RegionHDFSBlockLocationFinder.java
##########
@@ -60,6 +63,9 @@
private static final Logger LOG =
LoggerFactory.getLogger(RegionHDFSBlockLocationFinder.class);
private static final long CACHE_TIME = 240 * 60 * 1000;
private static final float EPSILON = 0.0001f;
+ // The max size of the cache,
+ private static final String BALANCER_REGIONBLOCKLOCATION_CACHE_MAX_SIZE =
+ "hbase.master.balancer.regionBlockLocation.cache.max.size";
Review comment:
Just give the cache an upper limit, you can see details at
https://issues.apache.org/jira/browse/HBASE-25624
--
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]