From 12ad6fa7a8b15077981011c88c664d855ed0f7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Fri, 12 Apr 2019 23:12:22 +0200 Subject: [PATCH] Return early if hbck fails --- hbase-exporter | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-exporter b/hbase-exporter index 3b5144d..9687324 100755 --- a/hbase-exporter +++ b/hbase-exporter @@ -335,6 +335,7 @@ class hbase_exporter(): if p.returncode != 0: logging.info("Failed to run hbck (%d)" % (p.returncode)) + return False for line in output: match = re_inconsistencies.match(line)