Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h5dump doesn't honor HDF5_VOL_CONNECTOR. #2645

Closed
hyoklee opened this issue Mar 28, 2023 · 5 comments · Fixed by #3159
Closed

h5dump doesn't honor HDF5_VOL_CONNECTOR. #2645

hyoklee opened this issue Mar 28, 2023 · 5 comments · Fixed by #3159
Assignees
Labels
Component - Tools Command-line tools like h5dump, includes high-level tools Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Bug Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub

Comments

@hyoklee
Copy link
Member

hyoklee commented Mar 28, 2023

Describe the bug
h5dump behaves differently when

  1. setting HDF5_VOL_CONNECTOR=daos environment variable
  2. providing --vol-name=daos

Expected behavior
Same behavior.

Platform (please complete the following information)

  • HDF5 version: 1.14
  • OS and version: n/a
  • Compiler and version: n/a
  • Build system (e.g. CMake, Autotools) and version: n/a
  • Any configure options you specified: n/a
  • MPI library and version (parallel HDF5): n/a

Additional context
Add any other context about the problem here.

The use_custom_vol_g is only active when --vol-name option is provided.

    if (use_custom_vol_g || use_custom_vfd_g) {
        if ((fapl_id = h5tools_get_fapl(H5P_DEFAULT, use_custom_vol_g ? &vol_info_g : NULL,
                                        use_custom_vfd_g ? &vfd_info_g : NULL)) < 0) {
            error_msg("unable to create FAPL for file access\n");
            h5tools_setstatus(EXIT_FAILURE);
            goto done;
        }
    }
@jhendersonHDF
Copy link
Collaborator

H5dump doesn't need to do anything about the environment variable. That's the entire point of the environment variable.

@jhendersonHDF
Copy link
Collaborator

To be clear, when the HDF5_VOL_CONNECTOR environment variable is set, it replaces the default VOL connector on File Access Property Lists. Therefore, h5dump doesn't need to pay attention to use_custom_vol_g because it doesn't need to setup a custom File Access Property List. It will just use the default one pointed to by H5P_DEFAULT which will already have the VOL set on it.

@hyoklee
Copy link
Member Author

hyoklee commented Mar 29, 2023

I just want to see a consistent behavior from the end-user's perspective.
Is --vol-name="daos" same as export HDF5_VOL_CONNECTOR=daos or not?

@jhendersonHDF
Copy link
Collaborator

When it eventually gets down to opening the file, yes both the command-line option and setting the environment variable are supposed to function the same way by just loading the DAOS VOL. If they do not function the same way, it's almost certainly a bug in the tools, but make sure you have a clean environment when testing that. Also, enable-vol is not a valid command-line option.

@mattjala mattjala added the Component - Tools Command-line tools like h5dump, includes high-level tools label Apr 11, 2023
@derobins derobins changed the title [BUG] h5dump doesn't honor HDF5_VOL_CONNECTOR. h5dump doesn't honor HDF5_VOL_CONNECTOR. May 3, 2023
@derobins derobins added Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Bug Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub labels May 3, 2023
@derobins derobins assigned lrknox and mattjala and unassigned lrknox May 4, 2023
@mattjala
Copy link
Contributor

Not a bug - closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Tools Command-line tools like h5dump, includes high-level tools Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Bug Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants