Asha Rostamianfar created BEAM-3416:
---------------------------------------

             Summary: File is not properly close 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)

Reply via email to