Skip to content

ADIOS2: Don't implicitly open files#1045

Merged
ax3l merged 2 commits intoopenPMD:devfrom
franzpoeschel:fix-adios2-no-implicit-file-opening
Jul 22, 2021
Merged

ADIOS2: Don't implicitly open files#1045
ax3l merged 2 commits intoopenPMD:devfrom
franzpoeschel:fix-adios2-no-implicit-file-opening

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