[
https://issues.apache.org/jira/browse/HADOOP-4292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637164#action_12637164
]
Hairong Kuang commented on HADOOP-4292:
---------------------------------------
Specifically what's in my mind is to introduce the following interface:
{code:title=TruncatableFileSystem.java|borderStyle=solid}
interface TruncatableFileSystem {
// set the file length to be the given len and the current position to be the
given len
FSDataOutputStream truncate(Path file, long len);
{code}
RawLocalFileSystem will implement TruncatableFileSystem.
In ChecksumFileSystem.append, if the raw file system is not a
TruncatableFileSystem, throw an exception indicating that the append is not
supported. Otherwise, read the last partial trunk, truncate both the data file
and crc file, rewrite the last partial trunk.
> append() does not work for LocalFileSystem
> ------------------------------------------
>
> Key: HADOOP-4292
> URL: https://issues.apache.org/jira/browse/HADOOP-4292
> Project: Hadoop Core
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.18.0, 0.19.0
> Reporter: Raghu Angadi
> Assignee: Hairong Kuang
> Priority: Blocker
> Fix For: 0.18.2, 0.19.0
>
>
> append is supported by LocalFileSystem but it does not update crc when a file
> is appended.
> When you enable checksum verification {{TestLocalFileSystem.testAppend}}
> fails. Since HADOOP-4277 is a blocker for 0.17 I am planning to disable this
> test in HADOOP-4277.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.