Skip to content

[Integration] make dirac-dms-remove-catalog-replicas to remove a dangling LFN for the last replica - #9008

Open
martynia wants to merge 1 commit into
DIRACGrid:integrationfrom
martynia:janusz_issue_7076
Open

martynia wants to merge 1 commit into
DIRACGrid:integrationfrom
martynia:janusz_issue_7076

Conversation

@martynia

@martynia martynia commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #7076

BEGINRELEASENOTES
Thank you for writing the text to appear in the release notes. It will show up
exactly as it appears between the two bold lines

Please follow the template:
*Subsystem
NEW/CHANGE/FIX: explanation

For examples look into release.notes

ENDRELEASENOTES

@martynia martynia changed the title fix: make dirac-dms-remove-catalog-replicas to remove a dangling LFN for the last replica [Integration] make dirac-dms-remove-catalog-replicas to remove a dangling LFN for the last replica Dec 4, 2026
Comment on lines +1403 to +1406
if reason == "File has zero replicas":
emptyLFNs.append(lfn)
elif reason != "No such file or directory":
failed[lfn] = reason

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These look very weak, can you check if there's a better way?

@fstagni

fstagni commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

BTW, if you want this on every branch, you are missing rel-v9r0

This branch has not been deployed

No deployments
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.

dirac-dms-remove-catalog-replicas should remove LFN from file catalog if it deletes the last replica of a file

2 participants