Exemplo n.º 1
0
 public virtual void Unregister(TaskAttemptId attemptID, WrappedJvmID jvmID)
 {
     // Unregistration also comes from the same TaskAttempt which does the
     // registration. Events are ordered at TaskAttempt, so unregistration will
     // always come after registration.
     // Remove from launchedJVMs before jvmIDToActiveAttemptMap to avoid
     // synchronization issue with getTask(). getTask should be checking
     // jvmIDToActiveAttemptMap before it checks launchedJVMs.
     // remove the mappings if not already removed
     launchedJVMs.Remove(jvmID);
     Sharpen.Collections.Remove(jvmIDToActiveAttemptMap, jvmID);
     //unregister this attempt
     taskHeartbeatHandler.Unregister(attemptID);
 }