-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-18501: ABFS: Partial read should add to throttling data: DRAFT #5109
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
Closed
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
38e47fd
change for throttling on 206, if connection-rest happens with 206, ab…
saxenapranav ae92e58
byteRead to be taken from the abfsHttpOperation.getBytesReceived
saxenapranav bbf1597
mock classes for test
saxenapranav 4b4b407
constructor of mockAbfsRestOperation in mockabfsclient
saxenapranav 94b7b02
intercept functioning within the mock classes; need to add test-cases
saxenapranav 7451d45
mock intercepts
saxenapranav 6fd4871
added testPartialReadWithConnectionReset
saxenapranav be66257
make a call to actual server to check if the intermediate requests cr…
saxenapranav 702e0d4
reading original file and asserting if bytes match.
saxenapranav 3096159
contentLen - contentLenRecvd for metric push
saxenapranav 8b3581e
general refactors
saxenapranav 0a2cec1
asf license
saxenapranav 4873711
removed Bool object.
saxenapranav 5ee854d
Partial read parallel test fix
saxenapranav bd56ef4
checkstyle suggestions
saxenapranav e4a7684
AbfsClientThrottlingInterceptTestUtil to be final
saxenapranav 8c5e578
CONNECTION_RESET constant usee
saxenapranav db860cb
review1 resolution
saxenapranav 4874fa2
using org.assertj.core.api.Assertions
saxenapranav 7ee87be
Merge branch 'trunk' into partialReadThrottle2
saxenapranav ea5193f
loop in case of 0B + readRemote fix.
saxenapranav 7a38ad6
ITestPartialRead.testRecoverZeroBytePartialRead
saxenapranav 59758f5
Added testZeroByteFileRead in ITestAbfsInputStream
saxenapranav 59c3270
nit refactors
saxenapranav 791bfc8
nit refactors
saxenapranav d29db88
boilerplate code for using spy instead of mock classes
saxenapranav 0af5d22
test started to work with mockito
saxenapranav 9e43cda
partial test with spy running
saxenapranav d48d9b4
tests fixed with new spy methodology
saxenapranav 00aa655
extra-created mock classes are removed
saxenapranav 2bdfbb4
general refactors
saxenapranav 2f59672
documentation for mockClassInterceptor, mockClassUtils; javac issues
saxenapranav dcac6b6
refactor for uncheck and uncast issues
saxenapranav 01d0680
suppressWarning annotation
saxenapranav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
244 changes: 103 additions & 141 deletions
244
...p-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
jdk code doesn't expose any enum or constant, even they are using a string: https://github.com/openjdk-mirror/jdk/blob/jdk8u/jdk8u/master/src/share/classes/java/net/SocketInputStream.java#L209