Skip to content

Commit

Permalink
fix: always wait for storage if rocksdb is selected (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroundabout authored Oct 24, 2023
1 parent d4b95ca commit b43526d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hugegraph-dist/src/assembly/static/bin/wait-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ while IFS=' ' read -r envvar_key envvar_val; do
done < <(env | sort -r | awk -F= '{ st = index($0, "="); print $1 " " substr($0, st+1) }')

# wait for storage
if ! [ -z "${WAIT_STORAGE_TIMEOUT_S:-}" ]; then
timeout "${WAIT_STORAGE_TIMEOUT_S}s" bash -c \
"until bin/gremlin-console.sh -- -e $DETECT_STORAGE > /dev/null 2>&1; do echo \"waiting for storage...\"; sleep 5; done"
if env | grep '^hugegraph\.' > /dev/null; then
if ! [ -z "${WAIT_STORAGE_TIMEOUT_S:-}" ]; then
timeout "${WAIT_STORAGE_TIMEOUT_S}s" bash -c \
"until bin/gremlin-console.sh -- -e $DETECT_STORAGE > /dev/null 2>&1; do echo \"waiting for storage...\"; sleep 5; done"
fi
fi

0 comments on commit b43526d

Please sign in to comment.