[
https://issues.apache.org/jira/browse/MAPREDUCE-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537450#comment-13537450
]
Jason Lowe commented on MAPREDUCE-4842:
---------------------------------------
I'm mostly OK with the latest patch except for one issue. Now that inProgress
is being set *after* the input is queued up, we have a different kind of race.
It's unlikely but theoretically possible:
# startMerge() queues up the input and wakes up the merging thread
# merging thread wakes up, completes the merge quickly, and sets inProgress to
false
# startMerge() finally sets inProgress to true, and now we have inProgress set
to true with no merge in progress.
I'd prefer the inProgress setting in startMerge() was moved back to before the
input is queued up and the wakeup occurs. There's still a race where it could
blip back to false before it gets set back to true within the run() method, but
that's a benign race. There's always going to be a race regarding inProgress
given asynchronous producers and consumer, we just need to make the race
outcomes safe.
> Shuffle race can hang reducer
> -----------------------------
>
> Key: MAPREDUCE-4842
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-4842
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 2.0.2-alpha, 0.23.5
> Reporter: Jason Lowe
> Assignee: Mariappan Asokan
> Priority: Blocker
> Attachments: MAPREDUCE-4842-2.patch, mapreduce-4842.patch,
> mapreduce-4842.patch, mapreduce-4842.patch, mapreduce-4842.patch,
> mapreduce-4842.patch, MAPREDUCE-4842.patch, MAPREDUCE-4842.patch,
> MAPREDUCE-4842.patch, MAPREDUCE-4842.patch
>
>
> Saw an instance where the shuffle caused multiple reducers in a job to hang.
> It looked similar to the problem described in MAPREDUCE-3721, where the
> fetchers were all being told to WAIT by the MergeManager but no merge was
> taking place.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira