You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "masteryhx (via GitHub)" <gi...@apache.org> on 2023/01/28 05:37:29 UTC
[GitHub] [flink] masteryhx commented on pull request #21679: [FLINK-30561][state/changelog] fix changelog local cache file not found
masteryhx commented on PR #21679:
URL: https://github.com/apache/flink/pull/21679#issuecomment-1407299580
Thanks for the pr.
It's a bit strange that add close flag in StateChangelogHandleStreamHandleReader.
I'd like to suggest to add this flag in the stream of ChangelogStreamHandleReaderWithCache:
1. IIUC, Upon restart, Only ChangelogStreamHandleReaderWithCache will be global, but StateChangelogHandleStreamHandleReader will always be used as a new object so that current flag will not be reused and will always be false ?
2. It's better to put the responsbility of "close once" into the smallest scope who relys on it.
Or maybe I missed something ?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org