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

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [x] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [x] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   Linux or other
   
   ### RocketMQ version
   
   >= 5.0.0
   
   ### JDK Version
   
   _No response_
   
   ### Describe the Bug
   
   PopBufferMergeService#scanGarbage 代码
   ```java
   if (System.currentTimeMillis() - entry.getValue().getTime() > minute5) {
       POP_LOGGER.info("[PopBuffer]remove long time not used sub {} of topic {} 
in buffer!", cid, topic);
       iterator.remove();
       continue;
   }
   ```
   对于一些开发和测试环境而言,因为消息比较少,topic与消费者订阅关系很容易被移除,然后出现消费者消息出现skip的情况。
   
   ### Steps to Reproduce
   
   消息发送者一天发送了5条消息,但是最终消费者只消费到其中三条
   
   ### What Did You Expect to See?
   
   消费者消息不丢失
   
   ### What Did You See Instead?
   
   消费者消息不丢失
   
   ### Additional Context
   
   _No response_


-- 
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-unsubscr...@rocketmq.apache.org.apache.org

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

Reply via email to