Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Edit log branch (HDFS-1073)
-
None
-
None
-
Reviewed
Description
In some edit log corruption situations, it's useful to be able to determine the "valid" length of an edit log. For this JIRA we define "valid" as the length of the file excluding any trailing 0x00 bytes, usually left there by the preallocation done while writing. In the future this API can be extended to look at edit checksums, etc.