Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0, 2.0.0-alpha
-
None
-
None
-
Reviewed
Description
It is good to avoid running out of space in the middle of writing a batch of edits, because when it happens, we often get partial edits at the end of the log.
Edit log preallocation can solve this problem (see HADOOP-2330 for a full description of edit log preallocation).
The current pre-allocation code was introduced for performance reasons, not for preventing partial edits. As a consequence, we sometimes do a write without using pre-allocation. We should change the pre-allocation code so that it always preallocates at least enough space before writing out the edits.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-3531 EditLogFileOutputStream#preallocate should check for incomplete writes
-
- Closed
-
-
HADOOP-2330 Preallocate transaction log to improve namenode transaction logging performance
-
- Closed
-
-
HDFS-1846 Don't fill preallocated portion of edits log with 0x00
-
- Closed
-
-
HDFS-3596 Improve FSEditLog pre-allocation in branch-1
-
- Closed
-