You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ka...@apache.org on 2016/11/17 04:50:56 UTC
[2/8] hadoop git commit: HADOOP-13822. Use
GlobalStorageStatistics.INSTANCE.reset() at FileSystem#clearStatistics().
Contribute by Brahma Reddy Battula
HADOOP-13822. Use GlobalStorageStatistics.INSTANCE.reset() at FileSystem#clearStatistics(). Contribute by Brahma Reddy Battula
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/aab9737a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/aab9737a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/aab9737a
Branch: refs/heads/YARN-4752
Commit: aab9737a058c0bdeeb17c173e530b7e571315a56
Parents: ce2847e
Author: Mingliang Liu <li...@apache.org>
Authored: Wed Nov 16 20:04:57 2016 -0800
Committer: Mingliang Liu <li...@apache.org>
Committed: Wed Nov 16 20:08:48 2016 -0800
----------------------------------------------------------------------
.../src/main/java/org/apache/hadoop/fs/FileSystem.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/aab9737a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
index 529745c..9e98455 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
@@ -3719,12 +3719,7 @@ public abstract class FileSystem extends Configured implements Closeable {
* Reset all statistics for all file systems
*/
public static synchronized void clearStatistics() {
- final Iterator<StorageStatistics> iterator =
- GlobalStorageStatistics.INSTANCE.iterator();
- while (iterator.hasNext()) {
- final StorageStatistics statistics = iterator.next();
- statistics.reset();
- }
+ GlobalStorageStatistics.INSTANCE.reset();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org