Replies: 3 comments 3 replies
-
The log is partitioned into fixed size segments, and appends are placed into the latest segment. Only segments that aren't the latest segment are compacted. So it may be that you need to write more data into the system to observe compaction taking place, or alternatively, you could restart Redpanda which will cause new segments to be created and make the data eligible for compaction. |
Beta Was this translation helpful? Give feedback.
-
You can reduce the segment size and produce at least 1 full segment and you will see compaction working. |
Beta Was this translation helpful? Give feedback.
-
Moving this to a discussion as is not an issue. |
Beta Was this translation helpful? Give feedback.
-
Version & Environment
Redpanda version: v22.2.5
I'm using the latest redpanda docker image, version number is v22.2.5
after set retention.ms to 1000 and wait for a while, the old message is still kept.
The following is the detail operation.
create a new topic and change the value of retention.ms and log_compaction_interval_ms
ingest some data into topic twitch_chat and wait for some time, the ingested message is still existed. The behavior is unexpected.
Beta Was this translation helpful? Give feedback.
All reactions