Issue Details (XML | Word | Printable)

Key: HADOOP-3443
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Owen O'Malley
Reporter: Owen O'Malley
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

map outputs should not be renamed between partitions

Created: 25/May/08 05:23 AM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: 0.17.0
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works hadoop-3443-1.patch 2008-05-25 03:46 PM Owen O'Malley 4 kB
Text File Licensed for inclusion in ASF works hadoop-3443-1v17.patch 2008-06-03 04:40 AM Chris Douglas 4 kB

Hadoop Flags: Reviewed
Resolution Date: 03/Jun/08 04:40 AM


 Description  « Hide
If a map finishes with out having to spill its data buffer, the map outputs are sorted and written to disk. However, no care is taken to make sure that the same partition is used to write it out before it is renamed. On nodes with multiple disks assigned to the task trackers, this will likely cause an addition read/write cycle to disk that is very expensive.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Owen O'Malley added a comment - 25/May/08 03:46 PM
This patch uses the same directory for the final outputs in the case that there is a single spill. It also adds some logging so you can understand if (and why) the mapper's sort spilled.

Owen O'Malley added a comment - 25/May/08 03:48 PM
Should this be fixed in 0.17?

Doug Cutting added a comment - 26/May/08 05:51 PM
> Should this be fixed in 0.17?

Is it a regression?


Chris Douglas added a comment - 30/May/08 12:31 AM
+1 Looks good. Some of the logging could be at the debug level, particularly the logging in the synchronized section of BlockingBuffer.Buffer::write, but it shouldn't be a real issue.

Is it a regression?

No; it looks pretty ancient, but if there's a 0.17.1, including this would only make things better.


Chris Douglas added a comment - 03/Jun/08 04:40 AM
Port to 0.17, if we need it.

Chris Douglas added a comment - 03/Jun/08 04:40 AM
I just committed this. Thanks, Owen

Hudson added a comment - 03/Jun/08 01:26 PM