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

imbajin pushed a commit to branch fix/docker-standalone-partition-wait
in repository https://gitbox.apache.org/repos/asf/hugegraph.git

commit 1e3d177f976b11dd521042b64ad9ef39436df483
Author: imbajin <[email protected]>
AuthorDate: Sun Apr 19 05:45:46 2026 +0800

    fix(docker): skip partition wait for standalone rocksdb mode (#2999)
    
    The `wait-partition.sh` script was called unconditionally in
    `docker-entrypoint.sh`, causing standalone containers (rocksdb backend)
    to hang for 120s printing "Waiting for partition assignment..." since
    there is no Store service to respond.
    
    Now reads the actual backend from `hugegraph.properties` and only runs
    the partition wait when `backend=hstore`.
---
 hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh 
b/hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh
index b40886e04..442add34a 100755
--- a/hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh
+++ b/hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh
@@ -81,12 +81,14 @@ else
     log "HugeGraph initialization already done. Skipping re-init..."
 fi
 
-STORE_REST="${STORE_REST:-store:8520}"
-export STORE_REST
-
 ./bin/start-hugegraph.sh -j "${JAVA_OPTS:-}" -t 120
 
-# Post-startup cluster stabilization check
-./bin/wait-partition.sh || log "WARN: partitions not assigned yet"
+# Post-startup cluster stabilization check (hstore only — rocksdb has no 
partitions)
+ACTUAL_BACKEND=$(grep -E '^\s*backend\s*=' "${GRAPH_CONF}" | sed 's/.*=\s*//' 
| tr -d ' ')
+if [[ "${ACTUAL_BACKEND}" == "hstore" ]]; then
+    STORE_REST="${STORE_REST:-store:8520}"
+    export STORE_REST
+    ./bin/wait-partition.sh || log "WARN: partitions not assigned yet"
+fi
 
 tail -f /dev/null

Reply via email to