You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "f1amingo (via GitHub)" <gi...@apache.org> on 2026/09/14 12:09:08 UTC

[I] [Bug] Lite topics created after broker startup are not delivered to wildcard subscribers until restart [rocketmq]

f1amingo opened a new issue, #11163:
URL: https://github.com/apache/rocketmq/issues/11163

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question.
   - [x] I have searched the GitHub Issues and Discussions and believe this is not a duplicate.
   - [x] I have confirmed this bug belongs to the current repository.
   
   ### Runtime platform environment
   OS: Linux / macOS
   
   ### RocketMQ version
   branch: develop
   
   ### JDK Version
   Compiler: Oracle JDK 11
   
   ### Describe the Bug
   Since the lite topic prefix index was introduced (#10930), lite topics created after broker startup are never added to the index. Wildcard-subscription full dispatch and the parent-topic based operations (collect / count / clean lite topics) therefore miss every lite topic created at runtime, and only see the ones that existed at startup, until the broker restarts and repopulates the index.
   
   Root cause: when the first message of a lite topic is written, the store notifies with logicOffset = queueOffset + 1, i.e. offset == 1 for the first message, but the dispatcher maintains the index only when offset == 0, so the create hook never fires at runtime.
   
   ### Steps to Reproduce
   1. Start a broker with a LITE parent topic and a wildcard consumer group bound to it.
   2. After startup, send the first message to a new lite topic under that parent.
   3. The wildcard subscriber is not dispatched the new lite topic; admin operations that list/count/clean lite topics by parent topic also miss it.
   4. Restart the broker; the lite topic now shows up.
   
   ### What Did You Expect to See?
   A lite topic created at runtime is immediately visible to wildcard dispatch and to parent-topic collect/count/clean, without a restart.
   
   ### What Did You See Instead?
   Runtime-created lite topics are missing until the broker restarts.
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

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


Re: [I] [Bug] Lite topics created after broker startup are not delivered to wildcard subscribers until restart [rocketmq]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #11163: [Bug] Lite topics created after broker startup are not delivered to wildcard subscribers until restart
URL: https://github.com/apache/rocketmq/issues/11163


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [I] [Bug] Lite topics created after broker startup are not delivered to wildcard subscribers until restart [rocketmq]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #11163:
URL: https://github.com/apache/rocketmq/issues/11163#issuecomment-5664411355

   **Issue Evaluation**
   
   Category: `bug` | Status: **Under Review**
   
   This issue has been identified as a potential bug. Automated verification is in progress.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
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: commits-unsubscribe@rocketmq.apache.org

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