Double call of H5Eset_auto's callback function when using native-pass-through VOL
- Dominant language
- C
- Stars
- 988
- Forks
- 355
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Description
**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.
Contributor guide
Assessment
This issue has not been assessed yet.