fredia commented on code in PR #20152:
URL: https://github.com/apache/flink/pull/20152#discussion_r927673437
##########
flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogStateBackend.java:
##########
@@ -87,9 +87,14 @@ protected <K> CheckpointableKeyedStateBackend<K> restore(
String subtaskName = env.getTaskInfo().getTaskNameWithSubtasks();
ExecutionConfig executionConfig = env.getExecutionConfig();
+ env.getAsyncOperationsThreadPool();
+
ChangelogStateFactory changelogStateFactory = new
ChangelogStateFactory();
CheckpointableKeyedStateBackend<K> keyedStateBackend =
ChangelogBackendRestoreOperation.restore(
+ env.getJobID(),
+ env.getAsyncOperationsThreadPool(),
+ env.getTaskManagerInfo().getConfiguration(),
Review Comment:
I debug this locally, there is only `ENABLE_CHANGE_LOG_FOR_APPLICATION` in
`JobConfiguration`, and the `PERIODIC_MATERIALIZATION_INTERVAL` that
`ChangelogHandleReaderWithCache` needs is not in `TaskManagerInfo` too.
I think this should be
`env.getExecutionConfig().getPeriodicMaterializeIntervalMillis()`.
--
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]