-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17272. ABFS Streams to support IOStatistics API #2604
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
This comment has been minimized.
This comment has been minimized.
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.
LGTM; some minor comments, and checkstyle & javadocs need fixing.
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsStatistic.java
Outdated
Show resolved
Hide resolved
...zure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStreamStatisticsImpl.java
Outdated
Show resolved
Hide resolved
...ools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsOutputStream.java
Outdated
Show resolved
Hide resolved
...p-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsOutputStreamStatistics.java
Show resolved
Hide resolved
...hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsInputStreamStatistics.java
Show resolved
Hide resolved
Checkstyle issues are due to static imports having ".*", but these are enums, should I go this route or add the class name before their name(adds a few bits in the code, but avoids checkstyle issue)? Edit: Just saw some indentation issues as well, which my maven checkstyle didn't find. I'll update those in the new commit along with the change in static import if needed) |
This comment has been minimized.
This comment has been minimized.
🎊 +1 overall
This message was automatically generated. |
import java.util.concurrent.Future; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
import org.apache.hadoop.fs.statistics.StreamStatisticNames; |
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.
nit: needs to go into the real org.apache block. The IDE is getting confused because of the third party stuff. as this is a "real" hadoop import it should go down below; when we backport the google ones will go back to their unshaded names
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.
Sorry, my bad, should've double-checked.
@@ -18,32 +18,47 @@ | |||
|
|||
package org.apache.hadoop.fs.azurebfs.services; | |||
|
|||
import java.util.concurrent.atomic.AtomicLong; | |||
|
|||
import org.apache.hadoop.fs.statistics.StreamStatisticNames; |
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.
move into real apache group.
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.
LGTM, just some import positioning. The move to shaded guava on trunk is complicating both imports and backporting, even though it will ultimately be good
+1 pending those imports |
🎊 +1 overall
This message was automatically generated. |
Contributed by Mehakmeet Singh. Change-Id: I3445dec84b9b9e43bb1e41f709944ea05416bd74
Previously #2353, Had to close it due to parent branch closing and pushed in a new PR. Now the IOStatistics has been merged in trunk as 3 PRs(#2577, #2579, #2580).
Tested using: mvn -T 1C -Dparallel-tests=abfs clean verify
Region: East US
[errors related to #2331]