vamossagar12 commented on code in PR #11211: URL: https://github.com/apache/kafka/pull/11211#discussion_r857375173
########## streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractRocksDBSegmentedBytesStore.java: ########## @@ -234,7 +275,11 @@ public void put(final Bytes key, @Override public byte[] get(final Bytes key) { - final S segment = segments.getSegmentForTimestamp(keySchema.segmentTimestamp(key)); + final long timestampFromKey = keySchema.segmentTimestamp(key); + // check if timestamp is expired + if (timestampFromKey < observedStreamTime - retentionPeriod + 1) + return null; Review Comment: Added debug statement here. -- 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