This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Description
When a new timeline is created for an event type Nakadi sets the 'clean at' date for the previous timeline based on the event type retention time. After the retention period is over Nakadi deletes the old topic.
But if the event type's retention time is set to -1 the old topic is removed almost immediately because of the way the cleantAt date is calculated:
|
final Date cleanupDate = new Date(System.currentTimeMillis() + retentionTime); |
In our setup we use -1 for indefinite retention, although it is not described in Nakadi docs. So either Nakadi should not allow -1 for retention time or clean up should not happen.