Description
TEZ-3954 introduce a NullPointerException by removing the map id from the outputInfo before subsequent partition heads are fetched. Patch moved the cleanup to after the loop to prevent NPE and further more adds Unit Tests that verify correct behavior of ranged fetch.