You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Nagy (JIRA)" <ji...@apache.org> on 2012/08/21 15:17:38 UTC
[jira] [Created] (AVRO-1141) Avro data files are created without
O_TRUNC
Martin Nagy created AVRO-1141:
---------------------------------
Summary: Avro data files are created without O_TRUNC
Key: AVRO-1141
URL: https://issues.apache.org/jira/browse/AVRO-1141
Project: Avro
Issue Type: Bug
Components: c++
Affects Versions: 1.7.1
Reporter: Martin Nagy
Avro data files are created without O_TRUNC. If the file existed before and the new file is smaller than the old one, the resulting data file will be corrupted (containing remnants of the old file).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AVRO-1141) Avro data files are created without
O_TRUNC
Posted by "Martin Nagy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Nagy updated AVRO-1141:
------------------------------
Attachment: cpp_filestream_o_trunc.patch
Patch fixing the issue.
> Avro data files are created without O_TRUNC
> -------------------------------------------
>
> Key: AVRO-1141
> URL: https://issues.apache.org/jira/browse/AVRO-1141
> Project: Avro
> Issue Type: Bug
> Components: c++
> Affects Versions: 1.7.1
> Reporter: Martin Nagy
> Attachments: cpp_filestream_o_trunc.patch
>
>
> Avro data files are created without O_TRUNC. If the file existed before and the new file is smaller than the old one, the resulting data file will be corrupted (containing remnants of the old file).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AVRO-1141) Avro data files are created without
O_TRUNC
Posted by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiruvalluvan M. G. resolved AVRO-1141.
---------------------------------------
Resolution: Fixed
Committed revision 1377567.
After verifying that the fix works with Mac and Visual Studio. Than you Martin Nagy.
> Avro data files are created without O_TRUNC
> -------------------------------------------
>
> Key: AVRO-1141
> URL: https://issues.apache.org/jira/browse/AVRO-1141
> Project: Avro
> Issue Type: Bug
> Components: c++
> Affects Versions: 1.7.1
> Reporter: Martin Nagy
> Attachments: AVRO-1141.patch, cpp_filestream_o_trunc.patch
>
>
> Avro data files are created without O_TRUNC. If the file existed before and the new file is smaller than the old one, the resulting data file will be corrupted (containing remnants of the old file).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AVRO-1141) Avro data files are created without
O_TRUNC
Posted by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiruvalluvan M. G. updated AVRO-1141:
--------------------------------------
Attachment: AVRO-1141.patch
+1
Tested on Cygwin. Added a unit-test to catch the problem.
> Avro data files are created without O_TRUNC
> -------------------------------------------
>
> Key: AVRO-1141
> URL: https://issues.apache.org/jira/browse/AVRO-1141
> Project: Avro
> Issue Type: Bug
> Components: c++
> Affects Versions: 1.7.1
> Reporter: Martin Nagy
> Attachments: AVRO-1141.patch, cpp_filestream_o_trunc.patch
>
>
> Avro data files are created without O_TRUNC. If the file existed before and the new file is smaller than the old one, the resulting data file will be corrupted (containing remnants of the old file).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira