tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject tez git commit: TEZ-3443. Remove a repeated/unused method from MRTask. Contributed by darion yaphet
Date Mon, 16 Jan 2017 00:42:04 GMT
Repository: tez
Updated Branches:
  refs/heads/master d67faeb37 -> 81dacf58e


TEZ-3443. Remove a repeated/unused method from MRTask. Contributed by darion yaphet


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/81dacf58
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/81dacf58
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/81dacf58

Branch: refs/heads/master
Commit: 81dacf58e08393e6dda32945c1a36b8168184d58
Parents: d67faeb
Author: Siddharth Seth <sseth@apache.org>
Authored: Sun Jan 15 16:41:44 2017 -0800
Committer: Siddharth Seth <sseth@apache.org>
Committed: Sun Jan 15 16:41:44 2017 -0800

----------------------------------------------------------------------
 CHANGES.txt                                     |  1 +
 .../apache/tez/mapreduce/processor/MRTask.java  | 22 --------------------
 2 files changed, 1 insertion(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/81dacf58/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 0fe0c88..f275350 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@ INCOMPATIBLE CHANGES
 
 ALL CHANGES:
 
+  TEZ-3443. Remove a repeated/unused method from MRTask.
   TEZ-3551. FrameworkClient created twice causing minor delay.
   TEZ-3566. Avoid caching fs isntances in TokenCache after a point.
   TEZ-3568. Update SecurityUtils configuration to pick user provided configuration.

http://git-wip-us.apache.org/repos/asf/tez/blob/81dacf58/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/MRTask.java
----------------------------------------------------------------------
diff --git a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/MRTask.java b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/MRTask.java
index 3f0881e..b79f19c 100644
--- a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/MRTask.java
+++ b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/MRTask.java
@@ -345,28 +345,6 @@ public abstract class MRTask extends AbstractLogicalIOProcessor {
     return this.jobConf;
   }
 
-  /**
-   * Gets a handle to the Statistics instance based on the scheme associated
-   * with path.
-   *
-   * @param path the path.
-   * @param conf the configuration to extract the scheme from if not part of
-   *   the path.
-   * @return a Statistics instance, or null if none is found for the scheme.
-   */
-  @Private
-  public static List<Statistics> getFsStatistics(Path path, Configuration conf) throws
IOException {
-    List<Statistics> matchedStats = new ArrayList<FileSystem.Statistics>();
-    path = path.getFileSystem(conf).makeQualified(path);
-    String scheme = path.toUri().getScheme();
-    for (Statistics stats : FileSystem.getAllStatistics()) {
-      if (stats.getScheme().equals(scheme)) {
-        matchedStats.add(stats);
-      }
-    }
-    return matchedStats;
-  }
-
   @Private
   public synchronized String getOutputName() {
     return "part-" + NUMBER_FORMAT.format(taskAttemptId.getTaskID().getId());


Mime
View raw message