You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "MarvinYu (via GitHub)" <gi...@apache.org> on 2025/04/07 08:58:50 UTC
[D] PopBufferMergeService 消息订阅者关系被移除 [rocketmq]
GitHub user MarvinYu created a discussion: PopBufferMergeService 消息订阅者关系被移除
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的情况。
关键现在除了修改源代码,没有别的办法。
GitHub link: https://github.com/apache/rocketmq/discussions/9316
----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org