jeongyooneo commented on a change in pull request #107: [NEMO-178] Zero-delay 
task cloning
URL: https://github.com/apache/incubator-nemo/pull/107#discussion_r211090970
 
 

 ##########
 File path: 
runtime/master/src/main/java/edu/snu/nemo/runtime/master/BlockManagerMaster.java
 ##########
 @@ -43,31 +37,32 @@
 import java.util.concurrent.locks.Lock;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
-import java.util.stream.IntStream;
+import java.util.stream.Collectors;
 
 import org.apache.reef.annotations.audience.DriverSide;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import static edu.snu.nemo.runtime.common.state.BlockState.State.IN_PROGRESS;
-import static edu.snu.nemo.runtime.common.state.BlockState.State.NOT_AVAILABLE;
-
 /**
  * Master-side block manager.
  */
 @ThreadSafe
 @DriverSide
 public final class BlockManagerMaster {
   private static final Logger LOG = 
LoggerFactory.getLogger(BlockManagerMaster.class.getName());
-  private final Map<String, BlockMetadata> blockIdToMetadata;
-  private final Map<String, Set<String>> producerTaskIdToBlockIds;
+
+  private final Map<String, Set<String>> producerTaskIdToBlockIds; // a task 
can have multiple out-edges
+  private final Map<String, Set<BlockMetadata>> blockIdWildcardToMetadataSet; 
// a metadata = a task attempt output
 
 Review comment:
   Could you explain more on the usage of `blockIdWildcardToMetadataSet`, i.e. 
why it is needed and what exactly 'a task attempt output' means? For example, 
does 'block wildcard' correspond to output of certain task attempt or cloned 
task?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to