You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Erik Krogen (JIRA)" <ji...@apache.org> on 2018/04/04 23:59:00 UTC
[jira] [Commented] (HDFS-13400) WebHDFS append returned stream has
incorrectly set position
[ https://issues.apache.org/jira/browse/HDFS-13400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426346#comment-16426346 ]
Erik Krogen commented on HDFS-13400:
------------------------------------
Attaching a patch with a unit test which demonstrates the issue
> WebHDFS append returned stream has incorrectly set position
> -----------------------------------------------------------
>
> Key: HDFS-13400
> URL: https://issues.apache.org/jira/browse/HDFS-13400
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: webhdfs
> Affects Versions: 2.9.0, 2.8.3, 2.7.5, 3.0.1
> Reporter: Erik Krogen
> Priority: Minor
> Attachments: HDFS-13400-unit-test.patch
>
>
> If you call {{getPos()}} on an {{FSDataOutputStream}} returned by {{WebHdfsFileSystem#append}}, it will initially return 0, even if the file already had content. This method should return the initial length of the file before appending.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org