hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-741) TestHFlush test doesn't seek() past previously written part of the file
Date Wed, 11 Nov 2009 01:53:27 GMT

    [ https://issues.apache.org/jira/browse/HDFS-741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776231#action_12776231

Tsz Wo (Nicholas), SZE commented on HDFS-741:

+        int readBytes = is.read(toRead, 0, tenth);
+        assertEquals("Should've get more bytes", tenth, readBytes);
Why expecting (tenth == readBytes)?  java.io.DataInputStream.read(..) may read some number
of bytes up to the given length but not necessary all the bytes, i.e. it is okay if we have
(0 < readBytes <= tenth).

> TestHFlush test doesn't seek() past previously written part of the file
> -----------------------------------------------------------------------
>                 Key: HDFS-741
>                 URL: https://issues.apache.org/jira/browse/HDFS-741
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Konstantin Boudnik
>            Assignee: Konstantin Boudnik
>         Attachments: HDFS-741.patch, HDFS-741.patch
> As a part of the test scenario a file is being written, 10th of the total length in a
time. Then a reader is opened to read what has been just written and hflush'ed. However, it
always starts reading from the 0 position of the file and doesn't seek to the start of the
portion written last.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message