private synchronized TaskInProgress getSpeculativeMap(String taskTrackerName, String taskTrackerHost) { ///////// Select a TIP to run on TaskInProgress tip = findSpeculativeTask(candidateSpeculativeMaps, taskTrackerName, taskTrackerHost, TaskType.MAP); if (tip != null) { LOG.info("Choosing map task " + tip.getTIPId() + " for speculative execution"); } else { if (LOG.isDebugEnabled()) { LOG.debug("No speculative map task found for tracker " + taskTrackerName); } } return tip; }
private synchronized TaskInProgress getSpeculativeReduce( String taskTrackerName, String taskTrackerHost) { TaskInProgress tip = findSpeculativeTask( runningReduces, taskTrackerName, taskTrackerHost, TaskType.REDUCE); if (tip != null) { LOG.info("Choosing reduce task " + tip.getTIPId() + " for speculative execution"); } else { if (LOG.isDebugEnabled()) { LOG.debug("No speculative map task found for tracker " + taskTrackerHost); } } return tip; }
private synchronized TaskInProgress getSpeculativeReduce( String taskTrackerName, String taskTrackerHost) { TaskInProgress tip = findSpeculativeTask( candidateSpeculativeReduces, taskTrackerName, taskTrackerHost, TaskType.REDUCE); if (tip != null) { LOG.info("Choosing reduce task " + tip.getTIPId() + " for speculative execution"); } else { if (LOG.isDebugEnabled()) { LOG.debug("No speculative reduce task found for tracker " + taskTrackerHost); } } return tip; }
TaskInProgress tip = findSpeculativeTask(allTips, taskTrackerName, taskTrackerHost, TaskType.MAP);
Set<TaskInProgress> cacheForLevel = runningMapCache.get(key); if (cacheForLevel != null) { tip = findSpeculativeTask(cacheForLevel, tts, avgProgress, currentTime, level == 0); if (tip != null) { tip = findSpeculativeTask(cache, tts, avgProgress, currentTime, false); if (tip != null) { tip = findSpeculativeTask(nonLocalRunningMaps, tts, avgProgress, currentTime, false); if (tip != null) {
tip = findSpeculativeTask(runningReduces, tts, avgProgress, System.currentTimeMillis(), false); if (tip != null) {