This is an automated email from the ASF dual-hosted git repository.

michaelsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 9ebe8ccdaa8a7e1c671beabb30597e089917482e
Author: stiga-huang <[email protected]>
AuthorDate: Mon Jan 30 11:11:07 2023 +0800

    IMPALA-11873: Fix unbound variable of OZONE_ERASURECODE_POLICY when EC is 
diabled
    
    This fixes a script error of unbound variable when running the mini
    cluster on Ozone with ERASURE_CODING=false. In such case,
    OZONE_ERASURECODE_POLICY is not set in bin/impala-config.sh. Adds a
    default empty string when using it.
    
    Tests:
     - Verified CORE tests can run with TARGET_FILESYSTEM=ozone and
       ERASURE_CODING=false.
    
    Change-Id: If4c50653ec7e317c3246055adc50d4dd99272173
    Reviewed-on: http://gerrit.cloudera.org:8080/19455
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 testdata/cluster/admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testdata/cluster/admin b/testdata/cluster/admin
index 9f58d11d5..16ac8e670 100755
--- a/testdata/cluster/admin
+++ b/testdata/cluster/admin
@@ -329,7 +329,7 @@ function start_cluster {
   if [[ "${TARGET_FILESYSTEM}" = "ozone" ]]; then
     local replication=''
     echo "Creating Ozone volume/bucket"
-    if [ -n "${OZONE_ERASURECODE_POLICY}" ]; then
+    if [ -n "${OZONE_ERASURECODE_POLICY:-}" ]; then
       replication="--type EC --replication ${OZONE_ERASURECODE_POLICY}"
       echo "with erasure coding ${OZONE_ERASURECODE_POLICY}"
     fi

Reply via email to