Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
-
Reviewed
Description
Looks like the lock taken in this is broken. It takes a lock on lastResponse object and then puts a new lastResponse object into the map. At this point a new thread entering this function will get a new lastResponse object and will be able to take its lock and enter the critical section. Presumably we want to limit one response per app attempt. So the lock could be taken on the ApplicationAttemptId key of the response map object.
Attachments
Attachments
Issue Links
- is related to
-
YARN-4673 race condition in ResourceTrackerService#nodeHeartBeat while processing deduplicated msg
- Patch Available