git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@383626 13f79535-47bb-0310-9956-ffa450edef68
@@ -551,6 +551,11 @@ public class JobTracker implements MRConstants, InterTrackerProtocol, JobSubmiss
// Get map + reduce counts for the current tracker.
//
TaskTrackerStatus tts = (TaskTrackerStatus) taskTrackers.get(taskTracker);
+ if (tts == null) {
+ LOG.warning("Unknown task tracker polling; ignoring: " + taskTracker);
+ return null;
+ }
+
int numMaps = tts.countMapTasks();
int numReduces = tts.countReduceTasks();