spena opened a new pull request #10537:
URL: https://github.com/apache/kafka/pull/10537


   This PR changes the `TimeOrderedKeySchema` composite key from `time-seq-key` 
-> `time-key-seq` to allow deletion of duplicated time-key records using the 
RocksDB `deleteRange`  API. It also removes all duplicates when `put(key, 
null)` is called. Currently, the `put(key, null)` was a no-op, which was 
causing problems because there was no way to delete any keys when duplicates 
are allowed.
   
   The RocksDB `deleteRange(keyFrom, keyTo)` deletes a range of keys from 
`keyFrom` (inclusive) to `keyTo` (exclusive). To make `keyTo` inclusive, I 
incremented the end key by one when calling the `RocksDBAccessor`.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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:
us...@infra.apache.org


Reply via email to