The docs are unclear. When would I want to set retain duplicates to false/true. What is this used for? Is it for something particular in RocksDB?
Digging through streams internal code seems to being used to set some sequence number?
RocksDBWindowStore.java
private void maybeUpdateSeqnumForDups() {
if (this.retainDuplicates) {
this.seqnum = this.seqnum + 1 & 2147483647;
}
retainDuplicatesis set, then the key is replaced by the pair(key, seqnum)before data is stored in the state store. See here: github.com/apache/kafka/blob/…. It might be used to keep all updates for an entity in the store. - user152468