This is an automated email from the ASF dual-hosted git repository.
imbajin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new a8ae76b61 fix(docker): skip partition wait for standalone rocksdb mode
(#3000)
a8ae76b61 is described below
commit a8ae76b6171decea781ab1ef0f00b60993e5362a
Author: imbajin <[email protected]>
AuthorDate: Mon Apr 20 15:09:52 2026 +0800
fix(docker): skip partition wait for standalone rocksdb mode (#3000)
* 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..779c3eb70 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 '^[[:space:]]*backend[[:space:]]*=' "${GRAPH_CONF}" |
head -n 1 | sed 's/.*=//' | tr -d '[:space:]' || true)
+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