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

   ### 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
   
   ### RocketMQ version
   branch: develop
   
   ### JDK Version
   Compiler: Oracle JDK 8
   
   ### Describe the Bug
   In a wildcard lite subscription group, when a client's event set stays empty 
for over 35s (e.g. the previous message takes >35s to process and no new 
message arrives on the channel, or the channel is simply sparse), the 
background scan removes the idle event set and blacklists the client for 10s. 
If the lite topic has only this subscriber, new messages arriving within the 
blacklist window cannot be dispatched to anyone: delivery waits until the 
blacklist expires and a full-dispatch retry succeeds, causing seconds-level 
first delivery delay for a healthy idle consumer.
   
   ### Steps to Reproduce
   1. Create a wildcard lite subscription group with a single consumer client 
using long polling.
   2. Consume a message, then keep the channel idle for >35s so the idle event 
set is removed.
   3. Send a new message to the same lite topic immediately after the removal.
   
   ### What Did You Expect to See?
   The new message is dispatched and delivered in milliseconds, as in the 
normal event-driven path.
   
   ### What Did You See Instead?
   First delivery is delayed by up to ~10s (blacklist TTL plus full-dispatch 
retry alignment). Observed delays: 9.79s / 4.20s / 4.13s on FIFO lite channels; 
each message was delivered exactly once.
   
   ### Additional Context
   The blacklist is meant to make re-dispatch prefer other clients and to 
throttle retries to blocked clients. An empty event set has nothing to 
re-dispatch, so blacklisting an idle client has no benefit and only delays new 
messages.


-- 
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]

Reply via email to