1
0
Просмотр исходного кода

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

Signed-off-by: Anu Engineer <aengineer@apache.org>
Márton Elek 5 лет назад
Родитель
Сommit
addfb7ff7d
1 измененных файлов с 1 добавлено и 1 удалено
  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)