@VisibleForTesting
protected HostFetchResult setupLocalDiskFetch() {
Iterator<InputAttemptIdentifier> iterator = remaining.iterator();
while (iterator.hasNext()) {
InputAttemptIdentifier srcAttemptId = iterator.next();
//TODO: check for shutdown? - See TEZ-1480
long startTime = System.currentTimeMillis();
FetchedInput fetchedInput = null;
try {
TezIndexRecord idxRecord;
idxRecord = getTezIndexRecord(srcAttemptId);
fetchedInput = new LocalDiskFetchedInput(idxRecord.getStartOffset(),
idxRecord.getRawLength(), idxRecord.getPartLength(), srcAttemptId,
getShuffleInputFileName(srcAttemptId.getPathComponent(), null), conf,
new FetchedInputCallback() {
@Override
public void fetchComplete(FetchedInput fetchedInput) {}
@Override