Przeglądaj źródła

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

Signed-off-by: Anu Engineer <aengineer@apache.org>
Márton Elek 5 lat temu
rodzic
commit
addfb7ff7d
1 zmienionych plików z 1 dodań i 1 usunięć
  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)