New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-30561][state/changelog] fix changelog local cache file not found #21679
Conversation
Thanks for the pr.
Or maybe I missed something ? |
Thanks for your suggestion @masteryhx . I agree with the second point. As for the first point, whether StateChangelogHandleStreamHandleReader is reused after restart will cause this problem. I will move the close flag to ChangelogStreamHandleReaderWithCache later. |
7cd37c9
to
15e00fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @zoltar9264 .
I agree with @masteryhx and seems like you've already addressed his comment.
I have another question about concurrency, PTAL.
Besides of that, would that be possible and not too hard to write a test for this case?
...tl-dfs/src/main/java/org/apache/flink/changelog/fs/ChangelogStreamHandleReaderWithCache.java
Show resolved
Hide resolved
...fs/src/test/java/org/apache/flink/changelog/fs/ChangelogStreamHandleReaderWithCacheTest.java
Outdated
Show resolved
Hide resolved
742e076
to
eb58f0e
Compare
eb58f0e
to
7d6c047
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is the purpose of the change
Fix the changelog local cache file not found while restarting, described in FLINK-30561.
Brief change log
(for example:)
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation