[
https://issues.apache.org/jira/browse/HDFS-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771264#action_12771264
]
Eli Collins commented on HDFS-727:
----------------------------------
hdfs_test doesn't catch this, I confirmed hdfsOpenFile as used in the test does
set the block size incorrectly but I suspect the create path isn't going
through the BlockManager (which would fail the write because no DN matches the
requested block size). I'll update the test to catch this bug.
> bug setting block size hdfsOpenFile
> ------------------------------------
>
> Key: HDFS-727
> URL: https://issues.apache.org/jira/browse/HDFS-727
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Eli Collins
> Assignee: Eli Collins
> Fix For: 0.20.2, 0.21.0
>
> Attachments: hdfs727.patch
>
>
> In hdfsOpenFile in libhdfs invokeMethod needs to cast the block size argument
> to a jlong so a full 8 bytes are passed (rather than 4 plus some garbage
> which causes writes to fail due to a bogus block size).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.