Github user sihuazhou commented on a diff in the pull request: https://github.com/apache/flink/pull/5465#discussion_r169631205 --- Diff: flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBMapState.java --- @@ -520,7 +527,7 @@ private boolean underSameKey(byte[] rawKeyBytes) { return false; } - for (int i = keyPrefixBytes.length - 1; i >= backend.getKeyGroupPrefixBytes(); --i) { + for (int i = keyPrefixBytes.length - 1; --i >= backend.getKeyGroupPrefixBytes(); ) { --- End diff -- You are right, I have addressed this like your proposed.
---