Affects Version/s: None
Fix Version/s: v1.2.0
BucketWriter has several race conditions that came up during my performance testing over the weekend. One issue that caused data loss was the lack of atomic close() and open() semantics related to the "retry" mechanism after the abort() call in HDFSEventSink.process().
Another issue is the lack of clearly delineated responsibilities for calling open(), flush(), close(), etc. For example, HDFSEventSink.start() calls open(), HDFSEventSink.process() calls and abort() which calls open(), and BucketWriter.append() also calls close() and open().
There is another race condition related to the JVM shutdown hooks, which cause .tmp files not to be renamed.
These APIs need to be refactored and their responsibilities need to be clarified.
|Field||Original Value||New Value|
|Assignee||Mike Percy [ mpercy ]|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Remote Link||This issue links to "Review board link (Web Link)" [ 10000 ]|
|Status||In Progress [ 3 ]||Resolved [ 5 ]|
|Fix Version/s||v1.2.0 [ 12320243 ]|
|Resolution||Fixed [ 1 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|21m 44s||1||Mike Percy||21/May/12 07:25|
|8h 59m||1||Arvind Prabhakar||21/May/12 16:25|