-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17113. Adding ReadAhead Counters in ABFS #2154
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
💔 -1 overall
This message was automatically generated. |
} | ||
|
||
/* | ||
* Verifying the counter values of readAheadBytesRead and remoteBytesRead. |
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.
nice explanation
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.
Patch LGTM
I've suggested using AssertJ assertions, as they are a lot better for things like > asserts, but that is entirely optional -the patch is ready to go in even without it
So: your call. Do you want to play with AssertJ or do you just want to ship it as is and play with AssertJ on your next bit of work?
s
* remotely could also be greater than 32Kb. | ||
* | ||
*/ | ||
assertTrue(String.format("actual value of %d is not greater than or " |
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.
Try using AssertJ.assertThat here, it lets you declare the specific "isGreaterThan" assertion; it's describedAs() does the string formatting too.
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.
It would be good to add it in this patch. Thanks for the tip.
💔 -1 overall
This message was automatically generated. |
.isGreaterThanOrEqualTo(CUSTOM_READ_AHEAD_BUFFER_SIZE); | ||
|
||
} catch (InterruptedException e) { | ||
e.printStackTrace(); |
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.
can't we just throw this? If not, at least use LOG
ok, looks good. Just remove that catch of interrupted exceptions and instead add that exception to the list of exceptions the test can throw |
💔 -1 overall
This message was automatically generated. |
+1, merged to trunk |
..doesn't merge to 3.3. Have there been some trunk changes I've missed? |
Contributed by Mehakmeet Singh
Contributed by Mehakmeet Singh Change-Id: I6bbd8165385a9267ed64831bb1efa18b6554feb1
Contributed by Mehakmeet Singh
Contributed by Mehakmeet Singh Change-Id: Iaa85ce9c48c771f5a5153c5419190088a19e8b5e
tested by: mvn -T 1C -Dparallel-tests=abfs clean verify
Region: East US, West US