You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nemo.apache.org by GitBox <gi...@apache.org> on 2018/10/26 07:11:18 UTC

[GitHub] taegeonum commented on a change in pull request #129: [NEMO-8] Implement PipeManagerMaster/Worker

taegeonum commented on a change in pull request #129: [NEMO-8] Implement PipeManagerMaster/Worker
URL: https://github.com/apache/incubator-nemo/pull/129#discussion_r228425015
 
 

 ##########
 File path: runtime/executor/src/test/java/org/apache/nemo/runtime/executor/task/TaskExecutorTest.java
 ##########
 @@ -391,21 +391,21 @@ private StageEdge mockBroadcastVariableStageEdgeTo(final IRVertex srcVertex,
    * Represents the answer return an inter-stage {@link InputReader},
    * which will have multiple iterable according to the source parallelism.
    */
-  private class ParentTaskReaderAnswer implements Answer<InputReader> {
+  private class ParentTaskReaderAnswer implements Answer<BlockInputReader> {
     @Override
-    public InputReader answer(final InvocationOnMock invocationOnMock) throws Throwable {
+    public BlockInputReader answer(final InvocationOnMock invocationOnMock) throws Throwable {
       final List<CompletableFuture<DataUtil.IteratorWithNumBytes>> inputFutures = new ArrayList<>(SOURCE_PARALLELISM);
       final int elementsPerSource = DATA_SIZE / SOURCE_PARALLELISM;
       for (int i = 0; i < SOURCE_PARALLELISM; i++) {
         inputFutures.add(CompletableFuture.completedFuture(
             DataUtil.IteratorWithNumBytes.of(elements.subList(i * elementsPerSource, (i + 1) * elementsPerSource)
                 .iterator())));
       }
-      final InputReader inputReader = mock(InputReader.class);
+      final BlockInputReader inputReader = mock(BlockInputReader.class);
 
 Review comment:
   Do we have test codes for PipeInputReader and PipeOutputWriter?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services