Segments clean-up when messages expire due to TTL #14524
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
@vaimer TTL is a massive can of worms and a set of completely different code paths. Some major difference with how expiration is not "an equivalent of acknowledgement" has been documented for years: queues are discarded due to expiration only when they reach the head of the queue, which implies an active consumer. There is also documentation on quorum queue tuning for large messages. 4.1.0 made segment cleanup significantly more aggressive for the typical case where messages are consumed. I can see how slow segment cleanup in that case could be considered a bug but message expiration per TTL is a completely different beast and I somewhat doubt that our team will get to it before 4.4 or so. It's simply not a common enough operational problem (the common one was addressed in That said, RabbitMQ is open source software and you are welcome to investigate what can be done, convince our team that a specific approach is worth its downsides, and submit a PR. |
Beta Was this translation helpful? Give feedback.
-
|
could you run |
Beta Was this translation helpful? Give feedback.
-
|
Relevant changes in the 4.1 and 4.2 series are
|
Beta Was this translation helpful? Give feedback.








FYI,
4.1goes out of community support this week after4.1.8ships.Relevant changes in the 4.1 and 4.2 series are
v4.1.xas #14505 and included into more recent patch releases such as the upcoming4.1.8