vcrfxia commented on code in PR #13243: URL: https://github.com/apache/kafka/pull/13243#discussion_r1107595402
########## streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java: ########## @@ -297,6 +312,12 @@ void restoreBatch(final Collection<ConsumerRecord<byte[], byte[]>> records) { // records into memory. how high this memory amplification will be is very much dependent // on the specific workload and the value of the "segment interval" parameter. for (final ConsumerRecord<byte[], byte[]> record : records) { + if (record.timestamp() < streamTimeForRestore - gracePeriod) { + // record is older than grace period and was therefore never written to the store Review Comment: Sounds good. Here's the ticket: https://issues.apache.org/jira/browse/KAFKA-14723 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org