hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sj...@apache.org
Subject [21/50] [abbrv] hadoop git commit: HADOOP-13822. Use GlobalStorageStatistics.INSTANCE.reset() at FileSystem#clearStatistics(). Contribute by Brahma Reddy Battula
Date Tue, 22 Nov 2016 21:33:38 GMT
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/HADOOP-13070
Commit: aab9737a058c0bdeeb17c173e530b7e571315a56
Parents: ce2847e
Author: Mingliang Liu <liuml07@apache.org>
Authored: Wed Nov 16 20:04:57 2016 -0800
Committer: Mingliang Liu <liuml07@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


Mime
View raw message