[ 
https://issues.apache.org/jira/browse/AVRO-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton updated AVRO-2463:
------------------------
    Description: 
{quote}DataFileWriter.sync(){quote}
should
{quote}return out.tell() + vout.bytesBuffered();{quote}
not just
{quote}return out.tell();{quote}
Please consider attached AvroTest.java. If {{w.setFlushOnEveryBlock(false);}} 
is uncommented it passes but if its present it fails


  was:
{quote}DataFileWriter.sync(){quote}
should
{quote}return out.tell() + vout.bytesBuffered();{quote}
not just
{quote}return out.tell;{quote}
Please consider attached AvroTest.java. If {{w.setFlushOnEveryBlock(false);}} 
is uncommented it passes but if its present it fails



> DataFileWriter.sync() returns bad value if flushOnEveryBlock = false
> --------------------------------------------------------------------
>
>                 Key: AVRO-2463
>                 URL: https://issues.apache.org/jira/browse/AVRO-2463
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.0
>            Reporter: Anton
>            Priority: Major
>         Attachments: AvroTest.java
>
>
> {quote}DataFileWriter.sync(){quote}
> should
> {quote}return out.tell() + vout.bytesBuffered();{quote}
> not just
> {quote}return out.tell();{quote}
> Please consider attached AvroTest.java. If {{w.setFlushOnEveryBlock(false);}} 
> is uncommented it passes but if its present it fails



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to