/** * The crux of the matter... */ private void doCopy(Set<TaskAttemptID> maps) throws IOException { Iterator<TaskAttemptID> iter = maps.iterator(); while (iter.hasNext()) { TaskAttemptID map = iter.next(); LOG.debug("LocalFetcher " + id + " going to fetch: " + map); if (copyMapOutput(map)) { // Successful copy. Remove this from our worklist. iter.remove(); } else { // We got back a WAIT command; go back to the outer loop // and block for InMemoryMerge. break; } } }
/** * The crux of the matter... */ private void doCopy(Set<TaskAttemptID> maps) throws IOException { Iterator<TaskAttemptID> iter = maps.iterator(); while (iter.hasNext()) { TaskAttemptID map = iter.next(); LOG.debug("LocalFetcher " + id + " going to fetch: " + map); if (copyMapOutput(map)) { // Successful copy. Remove this from our worklist. iter.remove(); } else { // We got back a WAIT command; go back to the outer loop // and block for InMemoryMerge. break; } } }
/** * The crux of the matter... */ private void doCopy(Set<TaskAttemptID> maps) throws IOException { Iterator<TaskAttemptID> iter = maps.iterator(); while (iter.hasNext()) { TaskAttemptID map = iter.next(); LOG.debug("LocalFetcher " + id + " going to fetch: " + map); if (copyMapOutput(map)) { // Successful copy. Remove this from our worklist. iter.remove(); } else { // We got back a WAIT command; go back to the outer loop // and block for InMemoryMerge. break; } } }
/** * The crux of the matter... */ private void doCopy(Set<TaskAttemptID> maps) throws IOException { Iterator<TaskAttemptID> iter = maps.iterator(); while (iter.hasNext()) { TaskAttemptID map = iter.next(); LOG.debug("LocalFetcher " + id + " going to fetch: " + map); if (copyMapOutput(map)) { // Successful copy. Remove this from our worklist. iter.remove(); } else { // We got back a WAIT command; go back to the outer loop // and block for InMemoryMerge. break; } } }