[ https://issues.apache.org/jira/browse/HDFS-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE updated HDFS-741: ---------------------------------------- Attachment: h741_20091112.patch > It seems that you're right. However, the point is still valid although is > slightly different: I'm able to read >0 bytes after seek. However, they > content is filled with '0' rather then with something the test is writing > into the file. Slightly modified version of the test to demonstrate just that. Hi Cos, checkData(..) should check only byte 0 to (readBytes-1). h741_20091112.patch works in my machine. h741_20091112.patch: changed checkData(..). > 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: h741_20091112.patch, HDFS-741.patch, 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.