@Override
  public RunCleanerChoreResponse runCleanerChore(RpcController c, RunCleanerChoreRequest req)
    throws ServiceException {
    rpcPreCheck("runCleanerChore");
    try {
      CompletableFuture<Boolean> fileCleanerFuture = server.getHFileCleaner().triggerCleanerNow();
      CompletableFuture<Boolean> logCleanerFuture = server.getLogCleaner().triggerCleanerNow();
      boolean result = fileCleanerFuture.get() && logCleanerFuture.get();
      return ResponseConverter.buildRunCleanerChoreResponse(result);
    } catch (InterruptedException e) {
      throw new ServiceException(e);
    } catch (ExecutionException e) {
      throw new ServiceException(e.getCause());
    }
  }
Turn on/off snapshot auto-cleanup based on TTL
@param enabledNewVal Set to <code>true</code> to enable, <code>false</code> to disable
@param synchronous   If <code>true</code>, it waits until current snapshot cleanup is
                     completed, if outstanding
@return previous snapshot auto-cleanup mode
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java