opened
taklwu
username_0
Existing logic of cleaner chore is to firstly execute HFiles cleaner and then oldwals cleaner in a request, and only return succeed if both completes. 

There is a use case of running only oldwals cleaner because oldwals uses all the disk space, and running HFiles cleaner is too slow because either the amount of old HFiles or directories are too much. So, this change provide the flexibility for those disabled cleaner by default or would like to execute admin command to run oldwals and HFiles cleaning procedure individually.

JIRA https://issues.apache.org/jira/browse/HBASE-21011
HBASE-21011 Provide CLI option to run oldwals and hfiles cleaner separately
issue
created
taklwu
username_0
* mvn build 

```
[INFO] Apache HBase - Thrift .............................. SUCCESS [  9.399 s]
[INFO] Apache HBase - RSGroup ............................. SUCCESS [  5.593 s]
[INFO] Apache HBase - Shell ............................... SUCCESS [  6.224 s]
[INFO] Apache HBase - Coprocessor Endpoint ................ SUCCESS [  6.771 s]
[INFO] Apache HBase - Backup .............................. SUCCESS [  5.245 s]
[INFO] Apache HBase - Integration Tests ................... SUCCESS [  7.493 s]
[INFO] Apache HBase - Rest ................................ SUCCESS [  6.264 s]
[INFO] Apache HBase - Examples ............................ SUCCESS [  5.281 s]
[INFO] Apache HBase - Shaded .............................. SUCCESS [  0.345 s]
[INFO] Apache HBase - Shaded - Client (with Hadoop bundled) SUCCESS [  1.709 s]
[INFO] Apache HBase - Shaded - Client ..................... SUCCESS [  1.750 s]
[INFO] Apache HBase - Shaded - MapReduce .................. SUCCESS [  3.261 s]
[INFO] Apache HBase - External Block Cache ................ SUCCESS [  3.837 s]
[INFO] Apache HBase - Spark ............................... SUCCESS [01:01 min]
[INFO] Apache HBase - Spark Integration Tests ............. SUCCESS [  5.535 s]
[INFO] Apache HBase - Assembly ............................ SUCCESS [ 14.762 s]
[INFO] Apache HBase Shaded Packaging Invariants ........... SUCCESS [  4.499 s]
[INFO] Apache HBase Shaded Packaging Invariants (with Hadoop bundled) SUCCESS [  1.940 s]
[INFO] Apache HBase - Archetypes .......................... SUCCESS [  0.100 s]
[INFO] Apache HBase - Exemplar for hbase-client archetype . SUCCESS [  6.007 s]
[INFO] Apache HBase - Exemplar for hbase-shaded-client archetype SUCCESS [  5.166 s]
[INFO] Apache HBase - Archetype builder ................... SUCCESS [  1.136 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:56 min
[INFO] Finished at: 2018-08-03T22:27:55-07:00
[INFO] Final Memory: 334M/1787M
[INFO] ------------------------------------------------------------------------
```

* related unit tests 

```
$ mvn clean test -Dtest=TestRpcAccessChecks
...
[INFO] Running org.apache.hadoop.hbase.security.access.TestRpcAccessChecks
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.99 s - in org.apache.hadoop.hbase.security.access.TestRpcAccessChecks
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-surefire-plugin:2.21.0:test (secondPartTestsExecution) @ hbase-server ---
[INFO] Tests are skipped.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2018-08-04T05:00:15+00:00
[INFO] Final Memory: 111M/1847M
[INFO] ------------------------------------------------------------------------

$ mvn test -Dtest=TestAsyncRegionAdminApi,TestAsyncRegionAdminApi2
...
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 101.791 s - in org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi
[INFO] Running org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi2
[WARNING] Tests run: 10, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 57.89 s - in org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi2
[INFO] 
[INFO] Results:
[INFO] 
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 2
[INFO] 
[INFO] 
[INFO] --- maven-surefire-plugin:2.21.0:test (secondPartTestsExecution) @ hbase-server ---
[INFO] Tests are skipped.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:52 min
[INFO] Finished at: 2018-08-04T05:26:12+00:00
[INFO] Final Memory: 82M/1623M
[INFO] ------------------------------------------------------------------------
```
comment
created
taklwu
username_0
close this PR because it does not trigger QAbot at this point, moved back to use review board with https://reviews.apache.org/r/68241/
comment