This is an automated email from the ASF dual-hosted git repository.

jeongyoon pushed a commit to branch 717-TGE
in repository https://gitbox.apache.org/repos/asf/incubator-nemo.git


The following commit(s) were added to refs/heads/717-TGE by this push:
     new 7d261e9  change name to pipeIdToDstTasksMap
7d261e9 is described below

commit 7d261e92cf2d06a0a11faeff3f6e82bf75822060
Author: Jeongyoon Eo <[email protected]>
AuthorDate: Mon Mar 5 19:10:26 2018 +0900

    change name to pipeIdToDstTasksMap
---
 .../snu/nemo/runtime/executor/TaskGroupExecutor.java | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/TaskGroupExecutor.java
 
b/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/TaskGroupExecutor.java
index 1b7f7eb..9da4c23 100644
--- 
a/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/TaskGroupExecutor.java
+++ 
b/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/TaskGroupExecutor.java
@@ -68,7 +68,7 @@ public final class TaskGroupExecutor {
   private final Map<String, List<Task>> srcIteratorIdToTasksMap;
   private final Map<String, List<Task>> iteratorIdToTasksMap;
   private final LinkedBlockingQueue<Pair<String, 
DataUtil.IteratorWithNumBytes>> iteratorQueue;
-  private volatile Map<String, List<Task>> pipeToDstTasksMap;
+  private volatile Map<String, List<Task>> pipeIdToDstTasksMap;
   private final Set<Transform> preparedTransforms;
   private final Set<String> finishedTaskIds;
   private final AtomicInteger completedFutures;
@@ -112,7 +112,7 @@ public final class TaskGroupExecutor {
     this.srcIteratorIdToTasksMap = new HashMap<>();
     this.iteratorIdToTasksMap = new ConcurrentHashMap<>();
     this.iteratorQueue = new LinkedBlockingQueue<>();
-    this.pipeToDstTasksMap = new HashMap<>();
+    this.pipeIdToDstTasksMap = new HashMap<>();
 
     this.preparedTransforms = new HashSet<>();
     this.finishedTaskIds = new HashSet<>();
@@ -360,22 +360,22 @@ public final class TaskGroupExecutor {
         tasks.forEach(task -> {
           final List<Task> dstTasks = taskGroupDag.getChildren(task.getId());
           PipeImpl pipe = taskToOutputPipeMap.get(task);
-          pipeToDstTasksMap.putIfAbsent(pipe.getId(), dstTasks);
-          LOG.info("{} pipeToDstTasksMap: [{}'s OutputPipe, {}]",
+          pipeIdToDstTasksMap.putIfAbsent(pipe.getId(), dstTasks);
+          LOG.info("{} pipeIdToDstTasksMap: [{}'s OutputPipe, {}]",
               taskGroupId, getPhysicalTaskId(task.getId()), dstTasks);
         }));
     iteratorIdToTasksMap.values().forEach(tasks ->
         tasks.forEach(task -> {
           final List<Task> dstTasks = taskGroupDag.getChildren(task.getId());
           PipeImpl pipe = taskToOutputPipeMap.get(task);
-          pipeToDstTasksMap.putIfAbsent(pipe.getId(), dstTasks);
-          LOG.info("{} pipeToDstTasksMap: [{}'s OutputPipe, {}]",
+          pipeIdToDstTasksMap.putIfAbsent(pipe.getId(), dstTasks);
+          LOG.info("{} pipeIdToDstTasksMap: [{}'s OutputPipe, {}]",
               taskGroupId, getPhysicalTaskId(task.getId()), dstTasks);
         }));
   }
 
   private void updatePipeToDstTasksMap() {
-    Map<String, List<Task>> currentMap = pipeToDstTasksMap;
+    Map<String, List<Task>> currentMap = pipeIdToDstTasksMap;
     Map<String, List<Task>> updatedMap = new HashMap<>();
 
     currentMap.values().forEach(tasks ->
@@ -383,12 +383,12 @@ public final class TaskGroupExecutor {
           final List<Task> dstTasks = taskGroupDag.getChildren(task.getId());
           PipeImpl pipe = taskToOutputPipeMap.get(task);
           updatedMap.putIfAbsent(pipe.getId(), dstTasks);
-          LOG.info("{} pipeToDstTasksMap: [{}, {}]",
+          LOG.info("{} pipeIdToDstTasksMap: [{}, {}]",
               taskGroupId, getPhysicalTaskId(task.getId()), dstTasks);
         })
     );
 
-    pipeToDstTasksMap = updatedMap;
+    pipeIdToDstTasksMap = updatedMap;
   }
 
   private void closeTransform(final Task task) {
@@ -554,7 +554,7 @@ public final class TaskGroupExecutor {
       // Intra-TaskGroup data comes from pipes of this TaskGroup's Tasks.
       initializePipeToDstTasksMap();
       while (!finishedAllTasks()) {
-        pipeToDstTasksMap.forEach((pipeId, dstTasks) -> {
+        pipeIdToDstTasksMap.forEach((pipeId, dstTasks) -> {
           PipeImpl pipe = taskToOutputPipeMap.values().stream()
               .filter(p -> p.getId() == pipeId)
               .findFirst().get();

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to