You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (Jira)" <ji...@apache.org> on 2021/10/05 18:43:00 UTC

[jira] [Created] (KAFKA-13349) Allow Iterator.remove on KeyValueIterator

Guozhang Wang created KAFKA-13349:
-------------------------------------

             Summary: Allow Iterator.remove on KeyValueIterator
                 Key: KAFKA-13349
                 URL: https://issues.apache.org/jira/browse/KAFKA-13349
             Project: Kafka
          Issue Type: Improvement
          Components: streams
            Reporter: Guozhang Wang


Today Stream's state store's range iterator does not support `remove`. We could consider adding such support for all the built-in state stores:

* RocksDB's native iterator does not support removal, but we can always do a delete(key) concurrently while the iterator is open on the snapshot.
* In-Memory: straight forward implementation.

The benefit of that is then for range-and-delete truncation operation we do not necessarily have to be cautious about concurrent modification exceptions. This could also help GC with in-memory stores.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)