jeongyooneo closed pull request #80: [NEMO-165] Bug when a task reads from multiple parent tasks URL: https://github.com/apache/incubator-nemo/pull/80
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/task/TaskExecutor.java b/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/task/TaskExecutor.java index bfcd04096..75207302d 100644 --- a/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/task/TaskExecutor.java +++ b/runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/task/TaskExecutor.java @@ -350,8 +350,9 @@ private void handleAdditionalOutputElement(final VertexHarness harness, final Ob */ private boolean handleDataFetchers(final List<DataFetcher> fetchers) { final List<DataFetcher> availableFetchers = new ArrayList<>(fetchers); - int finishedFetcherIndex = NONE_FINISHED; while (!availableFetchers.isEmpty()) { // empty means we've consumed all task-external input data + // For this looping of available fetchers. + int finishedFetcherIndex = NONE_FINISHED; for (int i = 0; i < availableFetchers.size(); i++) { final DataFetcher dataFetcher = fetchers.get(i); final Object element; ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services