ltamber commented on PR #6219: URL: https://github.com/apache/rocketmq/pull/6219#issuecomment-1452890557
> 2.创建topic时增加delete.deletion.ms属性,设置空消息的清除时间,不在合并中直接清除的直接原因,主要是担心消息发送和压缩过程太近,造成客户端还未消费到就被清除,实际应用中可能造成客户端无法更新本地数据 个人感觉这个属性`delete.retention.ms`名字可能会导致混淆,被认为是正常消息过期删除的时间; 另外对于一个类kv系统,我觉得delete之后就应该get不到,我们应该缩短这个耗时,而不是增加这个耗时,compaction topic的正确使用应该是消费到消息之后,在本地先compaction一次,也就是说null消息在客户端本地就应该把之前相同key的消息删除(覆盖),从而达到一个**实时**效果,如果需要消费到中间数据,顺序消息是不是能更好的满足需求。 > 3.增量compaction时,没有新增文件也会继续进行compact,主要是为了清除body为 null的消息 个人感觉这个过程,代价有点高,当compaction类型的topic/partition比较多时,这块占用资源会很高,当然如果基于上面说的,是否不需要这个过程 -- 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]
