zoltar9264 commented on code in PR #20152:
URL: https://github.com/apache/flink/pull/20152#discussion_r938498533
##########
flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/FsStateChangelogStorageForRecovery.java:
##########
@@ -33,8 +34,29 @@
public class FsStateChangelogStorageForRecovery
implements StateChangelogStorageView<ChangelogStateHandleStreamImpl> {
+ private final ChangelogStreamHandleReaderWithCache
changelogHandleReaderWithCache;
+
+ public FsStateChangelogStorageForRecovery() {
+ this.changelogHandleReaderWithCache = null;
+ }
+
+ public FsStateChangelogStorageForRecovery(Configuration configuration) {
+ this.changelogHandleReaderWithCache =
+ new ChangelogStreamHandleReaderWithCache(configuration);
+ }
+
@Override
public StateChangelogHandleReader<ChangelogStateHandleStreamImpl>
createReader() {
- return new StateChangelogHandleStreamHandleReader(new
StateChangeFormat());
+ return new StateChangelogHandleStreamHandleReader(
+ changelogHandleReaderWithCache != null
+ ? new
StateChangeIteratorImpl(changelogHandleReaderWithCache)
+ : new StateChangeIteratorImpl());
Review Comment:
Thanks @rkhachatryan !
--
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]