rkhachatryan commented on code in PR #24031:
URL: https://github.com/apache/flink/pull/24031#discussion_r1443459209
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/restore/RocksDBIncrementalRestoreOperation.java:
##########
@@ -105,6 +110,10 @@ public class RocksDBIncrementalRestoreOperation<K>
implements RocksDBRestoreOper
private boolean isKeySerializerCompatibilityChecked;
+ private final TriConsumerWithException<
+ Collection<IncrementalLocalKeyedStateHandle>, byte[],
byte[], Exception>
+ rescalingRestoreFromLocalStateOperation;
+
Review Comment:
This can be replaced by a boolean flag (`useIngestDbRestoreMode`) and a
"normal" `if` and call in `restoreWithRescaling`.
I think it would be more readable.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]