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

Clients: don't return success from uploader when registration fails #6670 #6754

Merged

Conversation

jamesp-epcc
Copy link
Contributor

This PR ensures that the upload client will not return success if updating the replica state or attaching to a dataset fails. Previously if the Rucio server timed out during one of these operations the upload was still flagged as a success and there was no way for the caller to detect the registration failure.

rdimaio
rdimaio previously approved these changes May 10, 2024
Copy link
Contributor

@rdimaio rdimaio left a comment

Choose a reason for hiding this comment

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

We should add a unit test at some point to assert num_succeeded is as expected

Copy link
Member

@bari12 bari12 left a comment

Choose a reason for hiding this comment

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

LGTM, but as @rdimaio already mentioned, please add a unit test for this right away, so we make sure this does not regress in the future

@jamesp-epcc
Copy link
Contributor Author

I've added a unit test that simulates the replica state update timing out and ensures that an exception is thrown as a result.

@bari12 bari12 merged commit bb97690 into rucio:master May 22, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants