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-13228][tests][filesystems] Harden HadoopRecoverableWriterTest #9235
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 4a0eae0 (Tue Aug 06 15:52:36 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
This should be able to resolve FLINK-12071 also. @flinkbot attention @tillrohrmann @StephanEwen |
Thanks for helping fix the checkstyle issue @zentol ! |
FYI: You can use |
Currently test cases will fail when trying to close the output stream if all data written but ClosedByInterruptException occurs at the ending phase. This commit fixes it.
Thanks for the reminder @StephanEwen , I thought it might be useful to log the exception out at debug level but yes we could also manually change it when need to debug, will change to use |
Looks good, thanks. |
Currently test cases will fail when trying to close the output stream if all data written but ClosedByInterruptException occurs at the ending phase. This commit fixes it. This closes apache#9235
Currently test cases will fail when trying to close the output stream if all data written but ClosedByInterruptException occurs at the ending phase. This commit fixes it. This closes apache#9235
Currently test cases will fail when trying to close the output stream if all data written but ClosedByInterruptException occurs at the ending phase. This commit fixes it. This closes apache#9235
Currently test cases will fail when trying to close the output stream if all data written but ClosedByInterruptException occurs at the ending phase. This commit fixes it. This closes apache#9235
What is the purpose of the change
Currently test cases will fail when trying to close the output stream if all data written but
ClosedByInterruptException
occurs at the ending phase. This PR proposes to close the stream silently if the test case logic passed properly.Brief change log
Close the output stream silently in
HadoopRecoverableWriterTest
if the test case logic passed properly.Verifying this change
This change is on the test cases and verified by sanity test through modifying hadoop source code to simulate the rarely happening situation that triggers the issue.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation