You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Asha Rostamianfar (JIRA)" <ji...@apache.org> on 2018/01/10 04:35:00 UTC

[jira] [Updated] (BEAM-3416) File is not properly closed in VcfSource when exception is thrown

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

Asha Rostamianfar updated BEAM-3416:
------------------------------------
    Summary: File is not properly closed in VcfSource when exception is thrown  (was: File is not properly close in VcfSource when exception is thrown)

> File is not properly closed in VcfSource when exception is thrown
> -----------------------------------------------------------------
>
>                 Key: BEAM-3416
>                 URL: https://issues.apache.org/jira/browse/BEAM-3416
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Asha Rostamianfar
>            Assignee: Asha Rostamianfar
>            Priority: Minor
>
> Files are not properly closed when an exception is thrown in VcfSource (apache_beam/io/vcfio.py).
> This is because the file is opened within TextSource (using a 'with' statement), but the exception in VcfSource is thrown outside of that scope.
> This only causes an issue in Windows unit tests where files cannot be deleted if they're used by another process.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)