Browse Source

HDDS-1937. Acceptance tests fail if scm webui shows invalid json

Signed-off-by: Anu Engineer <aengineer@apache.org>
Márton Elek 5 years ago
parent
commit
addfb7ff7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hadoop-ozone/dist/src/main/compose/testlib.sh

+ 1 - 1
hadoop-ozone/dist/src/main/compose/testlib.sh

@@ -39,7 +39,7 @@ count_datanodes() {
   else
     docker-compose -f "${compose_file}" exec -T scm curl -s "${jmx_url}"
   fi \
-    | jq -r '.beans[0].NodeCount[] | select(.key=="HEALTHY") | .value'
+    | jq -r '.beans[0].NodeCount[] | select(.key=="HEALTHY") | .value' || true
 }
 
 ## @description wait until datanodes are up (or 30 seconds)