-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Hadoop 16961. ABFS: Adding metrics to AbfsInputStream #2076
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
Change-Id: I034b771533b8314364a3762034439e323758ee09
🎊 +1 overall
This message was automatically generated. |
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.
looking good.
- this includes a patch gabor committed? is that in trunk? if so: can you rebase the later patch on top of trunk & submit as a new PR
- is there any way to create the streams with the statistics null and then call some operations, including toString? just to verify that this case is handled
...tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStream.java
Outdated
Show resolved
Hide resolved
...op-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStreamStatistics.java
Show resolved
Hide resolved
...hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsInputStreamStatistics.java
Show resolved
Hide resolved
...hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsInputStreamStatistics.java
Show resolved
Hide resolved
Gabor's patch wasn't committed/merged. It was still in a PR, I am taking over the PR and finish it with adding some tests and using AbfsInputStreamContext class. |
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.
Thanks @mehakmeet. Yes, you can take over my abandoned stat patch with this.
LGTM overall, @steveloughran requested some changes so +1 pending
…eam and null statistics test
I have added a test with statistics as null and tested out some operations and toString(), namely testWithNullStreamStatistics.
The error seems to be in L267(in ITestAbfsInputStreamStatistics.java), when I do getFileStatus() from the AbfsClient. This throws the "The specified path does not exist." error. |
could be settings in the FS instance as to whether hflush() writes the file...the failure is happening when it doesn't, and I recall it is a setting. in the ide you are probably getting a new FS Instance, but in the maven builds one already in the JVM is being recycled |
javadoc failures are from the java 11 builds; ignore for now |
Using |
The test fails only when parallel tests are enabled. The reason is during parallel tests paths are created under fork directories but while getting the path status absolute path is used. Interesting debugging indeed. |
Thanks, @mukund-thakur. Brilliant debugging :) |
…ffer at correct place.
I have changed the positioning of bytesReadFromBuffer, due to a bug found that this counter was actually incrementing ReadAhead buffer rather than local buffer(ReadAhead counters in a separate patch). Null statistics test works due to @mukund-thakur 's help. |
💔 -1 overall
This message was automatically generated. |
LGTM. |
I tried to cp into branch-3 and it didn't take. Is there some previous patch we need to merge in? I'd like both to stay 100% in sync here, so if there's something we need to pull in first, I'll do that |
HADOOP-16852(#1898)(causing the conflict) and HADOOP-17065(#2056) also, needs to go in. |
Contributed by Mehakmeet Singh.
Contributed by Mehakmeet Singh.
…he#2076) Contributed by Mehakmeet Singh. Contributed by Gabor Bota. Change-Id: I0394a37a75d79c8706f1f925b9d010b950cf4ae3
Test run by: mvn -T 1C -Dparallel-tests=abfs clean verify
Region: East US, West US
Relates to #1946