From 97b3a0401980fce7722196c16b67059716067be4 Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Mon, 13 Feb 2017 00:24:31 +0100 Subject: [PATCH] HBASE-17631 Changed Canary interval to 60 seconds --- .../src/main/java/org/apache/hadoop/hbase/tool/Canary.java | 2 +- src/main/asciidoc/_chapters/ops_mgt.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java index 8875862f1d9..ae6324f71b6 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java @@ -565,7 +565,7 @@ public final class Canary implements Tool { private static final int ERROR_EXIT_CODE = 4; private static final int FAILURE_EXIT_CODE = 5; - private static final long DEFAULT_INTERVAL = 6000; + private static final long DEFAULT_INTERVAL = 60000; private static final long DEFAULT_TIMEOUT = 600000; // 10 mins private static final int MAX_THREADS_NUM = 16; // #threads to contact regions diff --git a/src/main/asciidoc/_chapters/ops_mgt.adoc b/src/main/asciidoc/_chapters/ops_mgt.adoc index 10b9d00cd67..8d49ef89b07 100644 --- a/src/main/asciidoc/_chapters/ops_mgt.adoc +++ b/src/main/asciidoc/_chapters/ops_mgt.adoc @@ -185,7 +185,7 @@ $ ${HBASE_HOME}/bin/hbase canary -e test-0[1-2] ==== Run canary test as daemon mode -Run repeatedly with interval defined in option `-interval` whose default value is 6 seconds. +Run repeatedly with interval defined in option `-interval` whose default value is 60 seconds. This daemon will stop itself and return non-zero error code if any error occurs, due to the default value of option -f is true. ----