sihuazhou commented on a change in pull request #6438: [FLINK-9981] Tune performance of RocksDB implementation URL: https://github.com/apache/flink/pull/6438#discussion_r205981566
########## File path: flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBOrderedSetStore.java ########## @@ -116,7 +127,14 @@ public RocksDBOrderedSetStore( @Override public void add(@Nonnull T element) { + byte[] elementBytes = serializeElement(element); + + if (LEXICOGRAPIC_BYTE_COMPARATOR.compare(elementBytes, lowerBoundSeekKey) < 0) { + // a smaller element means a new lower bound. + lowerBoundSeekKey = elementBytes; Review comment: I wonder how could this happen? The `groupPrefixBytes` should be the smallest element since all valid element should start with the `groupPrefixBytes` or did I misunderstand something... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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 With regards, Apache Git Services