Opened 11 years ago
Closed 11 years ago
#5103 closed defect (fixed)
HDF5 file descriptor remains after closed
Reported by: | tomyun | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | 1.10.1 |
Component: | GDAL_Raster | Version: | 1.10.0 |
Severity: | normal | Keywords: | hdf5 |
Cc: | antonio |
Description
It is suspicious that HDF5 files are not properly closed when GDALClose()
is called. A snippet below may reproduce the issue.
from osgeo import gdal ds = gdal.Open('test.h5') # at this point, `lsof | grep test.h5` should show an open descriptor. ds = None # at this point, `lsof | grep test.h5` should show nothing, but it persists.
Same test with other formats like tiff worked flawlessly. It doesn't look like Python-only, as multiple gdal_translate
calls from a process still showed a bunch of open descriptors, even after each command had been terminated.
It might be relevant to the delayed close described in HDF5 API, though I have no clue to address it. http://www.hdfgroup.org/HDF5/doc/RM/RM_H5F.html#File-Close
Change History (3)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 11 years ago
Milestone: | → 1.10.1 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r26061) and branches/1.10 (r26062)