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

Recovery: Fix crash of the replica recoverer when adding rules #6597 #6602

Conversation

ChristophAmes
Copy link
Contributor

Description

The replica-recoverer sometimes crashes if it tries to add a rule that already exists.

A protection needs to be added here : https://github.com/rucio/rucio/blob/master/lib/rucio/daemons/replicarecoverer/suspicious_replica_recoverer.py#L363

Steps to reproduce

Rucio Version

No response

Additional Information

No response

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.

Instead of catching every exception, I think it's best if we specifically catch DuplicateRule, as that's the only kind of crash we identified so far. We can also have a generic catch-all exception block afterwards, to avoid crashing in case of other exceptions.

@rdimaio rdimaio linked an issue Mar 26, 2024 that may be closed by this pull request
@ChristophAmes ChristophAmes force-pushed the patch-6597-Crash_of_the_replica_recoverer_when_adding_rules branch 2 times, most recently from fb221fb to 7f19be7 Compare March 26, 2024 14:38
@ChristophAmes ChristophAmes force-pushed the patch-6597-Crash_of_the_replica_recoverer_when_adding_rules branch from 7f19be7 to 54c0ede Compare March 26, 2024 15:37
@rdimaio rdimaio merged commit c990f4c into rucio:master Mar 26, 2024
27 checks passed
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.

Crash of the replica-recoverer when adding rules
2 participants