Return early if hbck fails

This commit is contained in:
Björn Busse 2019-04-12 23:12:22 +02:00
parent d93f9d65c3
commit 12ad6fa7a8
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ class hbase_exporter():
if p.returncode != 0: if p.returncode != 0:
logging.info("Failed to run hbck (%d)" % (p.returncode)) logging.info("Failed to run hbck (%d)" % (p.returncode))
return False
for line in output: for line in output:
match = re_inconsistencies.match(line) match = re_inconsistencies.match(line)