HBASE-21322 Add a scheduleServerCrashProcedure() API to HbckService (#11)
authorMichael Stack <saintstack@users.noreply.github.com>
Thu, 18 Jul 2019 15:26:40 +0000 (08:26 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Jul 2019 15:26:40 +0000 (08:26 -0700)
commit0a21a70571b7c6a2658b241a734cc51b84e9968d
treea5b42a84b603ab9c39badb40e7728d32f43d64f8
parent1e8a7f20a20420a34e12c53f6f8e9faa111e1b5e
HBASE-21322 Add a scheduleServerCrashProcedure() API to HbckService (#11)

* HBASE-21322 Add a scheduleServerCrashProcedure() API to HbckService

Adds server version check so we fail fast and complain if remote
server does not support feature.

Refactor so we test server version before we use feature/command.

Named feature scheduleRecoveries

Add a new Version class that has Version math and check in it.

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Guanghao Zhang <zghao@apache.org>
hbase-hbck2/README.md
hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java
hbase-hbck2/src/main/java/org/apache/hbase/Version.java [new file with mode: 0644]
hbase-hbck2/src/test/java/org/apache/hbase/TestHBCK2.java
hbase-hbck2/src/test/java/org/apache/hbase/TestHBCKCommandLineParsing.java
hbase-hbck2/src/test/java/org/apache/hbase/TestSchedulingRecoveries.java [new file with mode: 0644]
hbase-hbck2/src/test/java/org/apache/hbase/TestVersion.java [new file with mode: 0644]
pom.xml