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
HADOOP-17181. Handle transient stream read failures in FileSystem contract tests #2286
Merged
steveloughran
merged 1 commit into
apache:trunk
from
steveloughran:s3/HADOOP-17181-ITestS3AContractUnbuffer
Sep 9, 2020
Merged
HADOOP-17181. Handle transient stream read failures in FileSystem contract tests #2286
steveloughran
merged 1 commit into
apache:trunk
from
steveloughran:s3/HADOOP-17181-ITestS3AContractUnbuffer
Sep 9, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Fixes Seek test to readFully * Doesn't do this to the unbuffer test as it changes the test too much. Instead just note in error that this may be transient Change-Id: I28d52e57192dd33dab3d25406e1e8ad12aa68572
tested: AWS london |
liuml07
approved these changes
Sep 8, 2020
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.
+1
Let's get this fix in and hopefully the error should be gone.
🎊 +1 overall
This message was automatically generated. |
The PR title (and commit subject) can be a bit more verbose like:
|
steveloughran
changed the title
HADOOP-17181. transient stream read failures
HADOOP-17181. Fix transient stream read failures in FileSystem contract tests
Sep 9, 2020
merged. Use "handle" not "fix" as the unbuffer tests may still see it. |
steveloughran
changed the title
HADOOP-17181. Fix transient stream read failures in FileSystem contract tests
HADOOP-17181. Handle transient stream read failures in FileSystem contract tests
Sep 9, 2020
asfgit
pushed a commit
that referenced
this pull request
Sep 9, 2020
…tract tests (#2286) Contributed by Steve Loughran. * Fixes AbstractContractSeekTest test to use readFully * Doesn't do this to AbstractContractUnbufferTest test as it changes the test too much. Instead just notes in the error that this may be transient The issue is that read(buffer) doesn't guarantee that the buffer is filled, only that it will read up to a point, and that may be just be the amount of data left in the TCP packet. readFully corrects for this, but using it in the unbuffer test runs the risk that what is tested for in terms of unbuffering doesn't actually get validated. Change-Id: I046eadb69b80ba0aac468b354c82c4d510dc3699
jojochuang
pushed a commit
to jojochuang/hadoop
that referenced
this pull request
May 23, 2023
…tract tests (apache#2286) Contributed by Steve Loughran. * Fixes AbstractContractSeekTest test to use readFully * Doesn't do this to AbstractContractUnbufferTest test as it changes the test too much. Instead just notes in the error that this may be transient The issue is that read(buffer) doesn't guarantee that the buffer is filled, only that it will read up to a point, and that may be just be the amount of data left in the TCP packet. readFully corrects for this, but using it in the unbuffer test runs the risk that what is tested for in terms of unbuffering doesn't actually get validated. Change-Id: Ia1587eaa4892961136ebb7c945f951e3b9825a49
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead just note in error that this may be transient