Hi all,
I came into an issue I cannot understand, I need a piece of advice... (HDF5 1.8.8 x86 platform)
I open a file, say TOP.hdf, (read mode but it looks it has no effect), this file
contains external link, say SUB*.hdf.
The TOP is open with a strong close degree, which means we affect the file access
property list. The links also have their own property list, and then in both parent
and child files we have non-default properties (and we do not use external link callbacks).
As I understand the docs, the properties of the parent should be propagated to the children files,
but it looks the close degree is not:
I open the TOP.hdf file, I close it
I open the SUB.hdf file, HDF5 error (in the close degree comparison while opening the file):
#### DBG [ 1914] ADFH_Database_Open [SUB.cgns]
HDF open [SUB.cgns]
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5F.c line 1522 in H5Fopen(): unable to open file
major: File accessability
minor: Unable to open file
#001: H5F.c line 1342 in H5F_open(): file close degree doesn't match
major: File accessability
minor: Unable to initialize object
It looks that closing the TOP.hdf file doesn't close the SUB.hdf file.
When I trace the HDF5 calls, we actually have a single open/close on the TOP file
and no other access to SUB.hdf except through link traversals.
Then 2 (main) questions:
1- is it possible the SUB file stays open even if we close the TOP file?
is there an HDF5 call I could use to test this?
2- if the SUB file is still open, it should be shared and then why does it
fail on the close degree comparison?
should we use a callback to force linked_to file close degree to STRONG?
is the close degree difference between TOP and SUB a possible reason for
the non-propagation of the TOP close?
Source code too big to be attached.
-MP-
···
-----------------------------------------------------------------------
Marc POINOT [ONERA/DSNA] Tel:+33.1.46.73.42.84 Fax:+33.1.46.73.41.66
Avertissement/disclaimer http://www.onera.fr/onera-en/emails-terms