I created a topic with the following configurations -
cleanup.policy = delete
segment.bytes = 16328
retention.ms = 5000
After inserting 500 messages I expected the messages to be deleted after 5 seconds however, this was not the case. The messages were deleted after 3 minutes.
I then created a topic with the following configurations -
cleanup.policy = compact,delete
segment.bytes = 16328
retention.ms = 5000
I inserted the same 500 messages again, and observed that they get deleted within a couple of seconds.
Why does deletion trigger immediately in a hybrid cleanup policy as compared to the delete cleanup policy? Is there any configuration that is causing this that I’m not aware of?