Link creation order not stored for file #5183
Labels
Component - C Library
Core C library issues (usually in the src directory)
Confirmed
Priority - 1. High 🔼
These are important issues that should be resolved in the next release
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Milestone
Bug
The information whether a file was created with
h5p_crt_order_indexed
andh5p_crt_order_tracked
is not (or only partially) stored. This means thatH5Pget_link_creation_order
does not report those values to be set if a file is re-opened. For groups, the information is stored. Note that HDFView still sorts the data in the file/base_group if it was created with order_tracked/order_indexed but in agreement with the Fortran library reports that order was not tracked.Expected behavior
I would expect the same behavior as for groups: If a file was created with with
h5p_crt_order_indexed
andh5p_crt_order_tracked
, this information should be stored andH5Pget_link_creation_order
reports that the flags are set when opening the file again later.Platform (please complete the following information)
Additional context
Initially, I thought that this was an HDFView issue and opened HDFGroup/hdfview#347
Code to Reproduce
sort_file_f90.txt: run to create 2 files
print_file_py.txt: print order in Python
get_status_file_f90.txt: get status in Fortran
sort_group_f90.txt: run to create 2 groups
print_group_py.txt: print order in Python
get_status_group_f90.txt: get status in Fortran
The text was updated successfully, but these errors were encountered: