openinx commented on a change in pull request #504: HBASE-22871 Move the
DirScanPool out and do not use static field
URL: https://github.com/apache/hbase/pull/504#discussion_r314947800
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
##########
@@ -1445,22 +1447,20 @@ private void startServiceThreads() throws IOException {
this.executorService.startExecutorService(ExecutorType.MASTER_TABLE_OPERATIONS,
1);
startProcedureExecutor();
- // Initial cleaner chore
- CleanerChore.initChorePool(conf);
- // Start log cleaner thread
- int cleanerInterval = conf.getInt("hbase.master.cleaner.interval", 600 *
1000);
- this.logCleaner =
- new LogCleaner(cleanerInterval,
- this, conf, getMasterWalManager().getFileSystem(),
- getMasterWalManager().getOldLogDir());
+ // Create cleaner thread pool
+ cleanerPool = new DirScanPool(conf);
+ // Start log cleaner thread
+ int cleanerInterval = conf.getInt("hbase.master.cleaner.interval", 600 *
1000);
Review comment:
Make it a static config key & default value ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services