You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/04/14 19:52:55 UTC

[GitHub] [kafka] spena commented on a change in pull request #10537: KAFKA-10847: Delete Time-ordered duplicated records using deleteRange() internally

spena commented on a change in pull request #10537:
URL: https://github.com/apache/kafka/pull/10537#discussion_r613544412



##########
File path: streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractRocksDBSegmentedBytesStore.java
##########
@@ -196,6 +196,15 @@ public void remove(final Bytes key) {
         segment.delete(key);
     }
 
+    @Override
+    public void remove(final Bytes key, final long timestamp) {

Review comment:
       I wasn't sure how to name this method. I initially called `removeRange(key, from, to)`, but I don't want to support a time range with a specific key because time-ordered key schema will delete other keys between `from-key` and `to-key`.
   
   So I thought of just using one timestamp, to make sure this is not called with a time range. But `removeRange(key, timestamp)` does not look like a range. I ended up just calling it `remove`. Any thoughts?




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org