You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "imbajin (via GitHub)" <gi...@apache.org> on 2026/04/18 21:44:56 UTC

[I] [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s [hugegraph]

imbajin opened a new issue, #2999:
URL: https://github.com/apache/hugegraph/issues/2999

   ### Bug Type (问题类型)
   
   server status (启动/运行异常)
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题
   
   ### Environment (环境信息)
   
   - Server Version: 1.7.0 (latest master)
   - Backend: RocksDB (standalone, default)
   - OS: macOS / Linux (Docker)
   - Image: `hugegraph/hugegraph:latest` built from `hugegraph-server/Dockerfile`
   
   ### Expected & Actual behavior (期望与实际表现)
   
   **Expected:** 使用 `hugegraph-server/Dockerfile` 构建的单机版镜像,`docker run` 后应直接启动成功,可正常使用。
   
   **Actual:** 服务启动后(HTTP 已监听 8080),持续打印 `Waiting for partition assignment...` 约 120 秒才超时结束:
   
   ![image](https://github.com/user-attachments/assets/waiting-partition-screenshot)
   
   ```
   INFO: Started listener bound to [0.0.0.0:8080]
   INFO: [HttpServer] Started.
   Started [pid 1017]
   Waiting for partition assignment...
   Waiting for partition assignment...
   Waiting for partition assignment...
   Waiting for partition assignment...
   Waiting for partition assignment...
   ```
   
   **Root Cause:**
   
   PR #2952 (`0154c064`) 重构 docker-compose 时,在 `docker-entrypoint.sh` 中**无条件**添加了 `wait-partition.sh` 调用:
   
   ```bash
   # Line 84-90 in docker-entrypoint.sh
   STORE_REST="${STORE_REST:-store:8520}"
   export STORE_REST
   ./bin/start-hugegraph.sh -j "${JAVA_OPTS:-}" -t 120
   ./bin/wait-partition.sh || log "WARN: partitions not assigned yet"
   ```
   
   `wait-partition.sh` 会轮询 `http://store:8520` 查找 `"partitionCount":[1-9]` —— 这仅在 hstore 分布式模式下有意义。单机 rocksdb 模式下没有 Store 服务,因此循环 120 秒后超时。
   
   对比 `wait-storage.sh` 则正确地做了判断:当没有设置 hstore 相关环境变量时会跳过等待。
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _N/A - this is a Docker startup issue, not a data issue._
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _N/A_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s [hugegraph]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2999:
URL: https://github.com/apache/hugegraph/issues/2999#issuecomment-4274619089

   **Screenshot of the issue:**
   
   The server starts successfully but gets stuck in a partition wait loop:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s [hugegraph]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #2999: [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s
URL: https://github.com/apache/hugegraph/issues/2999


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s [hugegraph]

Posted by "bitflicker64 (via GitHub)" <gi...@apache.org>.
bitflicker64 commented on issue #2999:
URL: https://github.com/apache/hugegraph/issues/2999#issuecomment-4275183200

   > [@bitflicker64](https://github.com/bitflicker64) Already add a patch for it
   
   @imbajin Thanks for the quick catch and patch! I'll add a reference to #3000 in the PR #2952 description.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] Standalone Docker image stuck at "Waiting for partition assignment..." for 120s [hugegraph]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2999:
URL: https://github.com/apache/hugegraph/issues/2999#issuecomment-4274624440

   @bitflicker64 Already add a patch for it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org