-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[Streaming][minor] Close files correctly when iterator is finished in streaming WAL recovery #6050
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
Conversation
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32378 has started for PR 6050 at commit |
|
Test build #32378 has finished for PR 6050 at commit
|
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Seems reasonable to me. Is the |
|
Thank for your review @srowen , both way are OK. |
|
LGTM. Good catch! |
…n streaming WAL recovery Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage. Author: jerryshao <[email protected]> Closes #6050 from jerryshao/close-file-correctly and squashes the following commits: 52dfaf5 [jerryshao] Close files correctly when iterator is finished (cherry picked from commit 25c01c5) Signed-off-by: Tathagata Das <[email protected]>
|
@jerryshao BTW, I merged it quickly, but do make a JIRA and point it to this PR (mark it as solved with fix version being 1.4). And also open another PR for branch 1.3 |
|
Hi @tdas , I will open a JIRA and backport this to 1.3. |
…n streaming WAL recovery Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage. Author: jerryshao <[email protected]> Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits: 52dfaf5 [jerryshao] Close files correctly when iterator is finished
…n streaming WAL recovery Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage. Author: jerryshao <[email protected]> Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits: 52dfaf5 [jerryshao] Close files correctly when iterator is finished
…n streaming WAL recovery Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage. Author: jerryshao <[email protected]> Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits: 52dfaf5 [jerryshao] Close files correctly when iterator is finished
Currently there's no chance to close the file correctly after the iteration is finished, change to
CompletionIteratorto avoid resource leakage.