RockteMQ-AI commented on issue #1316: URL: https://github.com/apache/rocketmq-clients/issues/1316#issuecomment-5394971829
**Issue Evaluation** Category: `bug` | Status: **Confirmed** Clear regression introduced in v5.1.4. The `startUp()` method now blocks until `inited=true`, but when no topics are pre-registered via `WithTopics`, the initialization never completes because route fetching is lazy (happens on first `Send` call). This creates a deadlock. **Root Cause:** `startUp()` waits for `inited=true`, but `inited` is only set after route fetching, which requires a topic — creating a circular dependency when `WithTopics` is not used. **Impact:** Producer cannot start at all without pre-registering topics, breaking the lazy route fetch pattern that worked in v5.1.1-rc1. **Severity:** High (complete startup failure) **Suggested fix:** Either (1) set `inited=true` immediately when no `WithTopics` are provided (defer route fetching to first Send), or (2) make `startUp()` not block on `inited` for the no-topics case. --- *Automated evaluation by github-manager* -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
