tillrohrmann commented on a change in pull request #9501: [FLINK-12697] [State
Backends] Support on-disk state storage for spill-able heap backend
URL: https://github.com/apache/flink/pull/9501#discussion_r334022091
##########
File path:
flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java
##########
@@ -472,6 +397,74 @@ S putNode(ByteBuffer keyByteBuffer, int keyOffset, int
keyLen, byte[] value, boo
* @return the old state. Null will be returned if key does not exist
or returnOldState is false.
*/
private S removeNode(ByteBuffer keyByteBuffer, int keyOffset, int
keyLen, boolean returnOldState) {
+ Tuple4<Long, Long, Boolean, S> result =
iterateAndProcess(keyByteBuffer, keyOffset, keyLen,
+ (tuple3, isRemoved) -> {
Review comment:
I would suggest to factor this method out in a separate method.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services