You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/08/16 19:40:00 UTC
[jira] [Commented] (AVRO-2919) Make avro.test.test_datafile
parallelizable and less leaky
[ https://issues.apache.org/jira/browse/AVRO-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178580#comment-17178580 ]
ASF subversion and git services commented on AVRO-2919:
-------------------------------------------------------
Commit fed505631bc9692080e35b7e8131e6f96e6e8f0d in avro's branch refs/heads/master from Michael A. Smith
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=fed5056 ]
AVRO-2919 Refactor Datafile Tests (#946)
- Ensure avro.test.test_datafile tests always close resources.
- Use tempfiles to ensure datafile tests can be run in parallel.
> Make avro.test.test_datafile parallelizable and less leaky
> ----------------------------------------------------------
>
> Key: AVRO-2919
> URL: https://issues.apache.org/jira/browse/AVRO-2919
> Project: Apache Avro
> Issue Type: Task
> Components: python
> Reporter: Michael A. Smith
> Assignee: Michael A. Smith
> Priority: Major
>
> avro.test.test_datafile in the python implementation uses a hardcoded filename for a temporary file used repeatedly in every datafile test case. So running these tests in parallel yields random failures and inconsistent results.
> Also, the file handle is not closed in every test case, leading to resource leaks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)