[ https://issues.apache.org/jira/browse/BEAM-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asha Rostamianfar resolved BEAM-3416. ------------------------------------- Resolution: Fixed Fix Version/s: 2.3.0 > 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 > Fix For: 2.3.0 > > > 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 (v7.6.3#76005)