jaehwan0214 commented on a change in pull request #304:
URL: https://github.com/apache/incubator-nemo/pull/304#discussion_r519601697
##########
File path:
runtime/executor/src/main/java/org/apache/nemo/runtime/executor/task/MultiThreadParentTaskDataFetcher.java
##########
@@ -127,14 +129,19 @@ private void fetchDataLazily() {
watermarkWithIndex.getIndex(),
watermarkWithIndex.getWatermark());
}
} else {
+ if (element instanceof Finishmark) {
+ isFinishMarkProduced = true;
+ }
// data element
elementQueue.offer(element);
}
}
-
// This iterator is finished.
countBytesSynchronized(iterator);
- elementQueue.offer(Finishmark.getInstance());
+ // If the current iterator hasn't produced finish mark, put it into
the global queue.
+ if (!isFinishMarkProduced) {
Review comment:
I fixed the LocalInputContext iterator so that it doesn't produce a
finish mark at the end. We no longer need to handle the case in which multiple
finish marks are produced.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]