This is an automated email from the ASF dual-hosted git repository.
ming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new b43526da6 fix: always wait for storage if rocksdb is selected (#2333)
b43526da6 is described below
commit b43526da604d78674d9644b30058627dd68ed51b
Author: Dandelion <[email protected]>
AuthorDate: Tue Oct 24 17:24:43 2023 +0800
fix: always wait for storage if rocksdb is selected (#2333)
---
hugegraph-dist/src/assembly/static/bin/wait-storage.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hugegraph-dist/src/assembly/static/bin/wait-storage.sh
b/hugegraph-dist/src/assembly/static/bin/wait-storage.sh
index 3a98e8c56..bdadeab23 100644
--- a/hugegraph-dist/src/assembly/static/bin/wait-storage.sh
+++ b/hugegraph-dist/src/assembly/static/bin/wait-storage.sh
@@ -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