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

ADIOS2: Don't implicitly open files #1045

Merged
merged 2 commits into from
Jul 22, 2021

Conversation

franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Jul 12, 2021

Bug found here. The ADIOS2 backend will implicitly open a file if it has not been opened yet. Files should only be opened if the frontend explicitly requested it, otherwise that's an error.

(Why should we be so strict? Implicit opening can make unsuspected calls accidentally collective. Better to have a clear error stating that something went wrong rather than a hanging parallel program.)

@ax3l
Copy link
Member

ax3l commented Jul 13, 2021

We will review on Wednesday if we want to follow the route in this PR or instead add this functionality to HDF5, too:
#1035 (comment)

@ax3l ax3l force-pushed the fix-adios2-no-implicit-file-opening branch from 6b23478 to 94975b5 Compare July 22, 2021 02:33
@ax3l ax3l self-assigned this Jul 22, 2021
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

I added the .bp test to the PR now to compete it :)

@ax3l ax3l enabled auto-merge (squash) July 22, 2021 03:55
@ax3l ax3l merged commit 94160e1 into openPMD:dev Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants