Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading