Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.0
-
None
-
Fix missing synchronization in MultiOutputFormat.
Description
MultipleOutputFormat's RecordWriter implementation doesn't use synchronization when accessing the recordWriters member. When using multithreaded mappers or reducers, this can result in problems where two threads will both try to create the same file, causing AlreadyBeingCreatedException. Doing this more fine-grained than just synchronizing the whole method is probably a good idea, so that multithreaded mappers can actually achieve parallelism writing into separate output streams.
From what I can tell, the new API's MultipleOutputs seems not to have this issue.
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-7298 Add test utility for writing multi-threaded tests
- Closed