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

Removing last replica which is a constituent #2213

Closed
bari12 opened this issue Feb 18, 2019 · 0 comments
Closed

Removing last replica which is a constituent #2213

bari12 opened this issue Feb 18, 2019 · 0 comments
Assignees
Milestone

Comments

@bari12
Copy link
Member

bari12 commented Feb 18, 2019

Motivation

When the last replica of a file is removed in the reaper, it should only be removed from the dataset if it is not a constituent of an existing archive replica. This also implies, if a archive replica is removed and there are no replicas on the constituents, the constituents need to be removed from their parent datasets.

@bari12 bari12 self-assigned this Feb 18, 2019
@bari12 bari12 assigned tbeerman, bari12 and cserf and unassigned bari12 Feb 19, 2019
@bari12 bari12 added this to the 1.19.2 milestone Feb 19, 2019
@bari12 bari12 modified the milestones: 1.19.3, 1.19.4 Mar 4, 2019
@bari12 bari12 modified the milestones: 1.19.4, 1.19.5 Mar 18, 2019
@bari12 bari12 modified the milestones: 1.19.5, 1.19.6 Apr 2, 2019
@bari12 bari12 modified the milestones: 1.19.6, 1.19.7 Apr 16, 2019
@bari12 bari12 modified the milestones: 1.19.7, 1.19.8 Apr 29, 2019
@bari12 bari12 modified the milestones: 1.19.8, 1.19.9 May 13, 2019
@bari12 bari12 modified the milestones: 1.19.9, 1.20.0 "Wonder Donkey" LTS, 1.20.0, 1.20.1 May 27, 2019
@bari12 bari12 modified the milestones: 1.20.1, 1.20.2 Jun 18, 2019
@bari12 bari12 modified the milestones: 1.20.2, 1.20.3 Jul 10, 2019
@bari12 bari12 removed this from the 1.20.3 milestone Jul 22, 2019
@bari12 bari12 added this to the 1.22.5 milestone May 4, 2020
@bari12 bari12 modified the milestones: 1.22.6, 1.22.7 May 18, 2020
@bari12 bari12 modified the milestones: 1.22.7, 1.22.8 Jun 2, 2020
@bari12 bari12 modified the milestones: 1.22.8, 1.22.X Jun 16, 2020
@bari12 bari12 modified the milestones: 1.22.X, 1.23.1 Jul 1, 2020
@bari12 bari12 modified the milestones: 1.23.1, 1.23.2 Jul 20, 2020
@bari12 bari12 modified the milestones: 1.23.2, 1.23.3 Aug 4, 2020
@bari12 bari12 assigned rcarpa and unassigned tbeerman, bari12 and cserf Mar 10, 2021
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 23, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 23, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 23, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 23, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 23, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 24, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 24, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
rcarpa added a commit to rcarpa/rucio that referenced this issue Mar 30, 2021
Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).
bari12 pushed a commit that referenced this issue Apr 22, 2021
* Deletion: handle archives in reaper. #1431 #2213

Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).

* Deletion: tolerate RSEs removal during rse-to-hostname mapping #1431

The case happens in tests now that we have concurrent tests which
create and remove RSEs. There is probably no harm to simply ignore the
RSEs which were removed between the list_rses call and the
get_rse_protocols call.
bari12 pushed a commit that referenced this issue Apr 22, 2021
* Deletion: handle archives in reaper. #1431 #2213

Ensure that replicas are removed from datasets only if they don't exists
in an archive.

When removing an archive, handle the removal of its constituents.
Only if:
- they don't exist in another archive
- they don't have replicas outside any archive

This is achieved by recursively calling the cleanup function after
removing the archive (and thus the constituent replicas).

* Deletion: tolerate RSEs removal during rse-to-hostname mapping #1431

The case happens in tests now that we have concurrent tests which
create and remove RSEs. There is probably no harm to simply ignore the
RSEs which were removed between the list_rses call and the
get_rse_protocols call.
@bari12 bari12 added this to the 1.25.4 milestone Apr 22, 2021
@bari12 bari12 closed this as completed Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants