FrankYang0529 opened a new pull request, #17794: URL: https://github.com/apache/kafka/pull/17794
If a user has configured value of `retention.ms` to a value > current unix timestamp epoch, then `cleanupUntilMs` becomes negative. https://github.com/apache/kafka/blob/5a5239770ff3565233e5cbecf11446e76339f8fe/core/src/main/java/kafka/log/remote/RemoteLogManager.java#L1397 This leads to cleaner failures and all cleaning for that topic partition stops. https://github.com/apache/kafka/blob/5a5239770ff3565233e5cbecf11446e76339f8fe/core/src/main/java/kafka/log/remote/RemoteLogManager.java#L2218 To fix this, return an empty `RetentionTimeData` if `retention.ms` is bigger than current unix timestamp. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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]
