Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-404

[Python] Closing an HdfsClient while there are still open file handles results in a crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • Python
    • None

    Description

      Reproducible as follows:

      In [3]: con = io.HdfsClient.connect(...)
      
      In [4]: f = con.open(hdfs_file_path)
      
      In [5]: con = None
      
      In [6]: f = None
      

      The attempt to invoke CloseFile on the internal file handle in f causes the JVM to segfault. f should retain a reference to its parent con so this does not occur

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: