Skip to content

Conversation

jessegeens
Copy link
Contributor

@jessegeens jessegeens commented Jan 7, 2025

Currently, sharing is not transactionalized: setting ACLs and writing the share to the db is completely independent. In the current situation, shares are written to the db before setting the ACL, letting users falsely believe that they successfully shared a resource, even if setting the ACL afterwards fails. his enhancement improves the situation by doing the least reliable (setting ACLs on EOS) first:
a) first pinging the db
b) writing the ACLs
c) writing to the db

Copy link

update-docs bot commented Jan 7, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@jessegeens jessegeens marked this pull request as ready for review January 7, 2025 12:31
glpatcern
glpatcern previously approved these changes Jan 7, 2025
Copy link
Member

@glpatcern glpatcern left a comment

Choose a reason for hiding this comment

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

Looks good, just a few minor comments

diocas
diocas previously approved these changes Jan 7, 2025
@jessegeens jessegeens force-pushed the fix/tx-sharing branch 2 times, most recently from de19b5b to 8da19df Compare January 17, 2025 13:21
glpatcern
glpatcern previously approved these changes Jan 29, 2025
Copy link
Member

@glpatcern glpatcern left a comment

Choose a reason for hiding this comment

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

I think this is ready to be merged now, just two more additions to the log

@glpatcern glpatcern merged commit 637e0fe into master Jan 29, 2025
16 checks passed
glpatcern pushed a commit that referenced this pull request Feb 3, 2025
Co-authored-by: Jesse Geens <jgeens@cern.ch>
@jessegeens jessegeens deleted the fix/tx-sharing branch June 16, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants