hdf5 icon indicating copy to clipboard operation
hdf5 copied to clipboard

Double call of H5Eset_auto's callback function when using native-pass-through VOL

Open brtnfld opened this issue 11 months ago • 0 comments

Describe the bug

When a user-defined callback is registered using H5Eset_auto and H5Fcreate fails (there might be other use cases), the callback function is called twice.

Expected behavior I would not expect the function to be called twice, but if this is expected, then it should be documented.

Platform (please complete the following information)

  • HDF5 version (if building from a maintenance branch, please include the commit hash) 1.14.x, develop
  • Discovered in Fortran's "test_error" when using make check check-passthrough-vol since it increments a value every time the callback is called.

Additional context The callback function is called only once if a fapl is created and passed to H5Fcreate. The Fortran test now does this, so the test passes.

brtnfld avatar Mar 14 '24 18:03 brtnfld