azagrebin commented on a change in pull request #6777: [FLINK-10461] [State
Backends, Checkpointing] Speed up download files when restore from DFS
URL: https://github.com/apache/flink/pull/6777#discussion_r236200642
##########
File path:
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackend.java
##########
@@ -686,6 +729,13 @@ public RocksDBNativeMetricOptions
getMemoryWatcherOptions() {
return options;
}
+ /**
+ * Gets the thread number will used for downloading files from DFS when
restore.
+ */
+ public int getRestoredThreadNum() {
+ return restoredThreadNum;
Review comment:
here we could return `restoredThreadNum` if it is not -1 (defined) and
`CheckpointingOptions.CHECKPOINT_RESTORE_THREAD_NUM.defaultValue()` if
`restoredThreadNum` is still -1 (undefined).
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services