Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3416

File is not properly closed in VcfSource when exception is thrown

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.3.0
    • sdk-py-core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              arostami Asha Rostamianfar
              arostami Asha Rostamianfar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: