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/29 02:10:43 UTC

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

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

 ##########
 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:
   Thanks for the catch. I've slipped this one. I changed this for while debugging, but this really should not change as we should mock the InputReader/OutputReader interfaces and not their implementations.

----------------------------------------------------------------
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