feat: release the target claim in cleanup
cleanup now deletes the claim file under .cephmig/claims as its last step, if it holds the job's own ID, and removes the claim directories when they are empty. A cleaned-up job is finished: cleanup and finalize do nothing and do not claim the target again, and sync is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f29328932
commit
a6e7bbb17e
10 files changed
+218
-14
No files matched your search
@@ -94,5 +94,8 @@ SH
|
||||
"${compose[@]}" exec -T native "$binary" cleanup --config "$config" --state "$state"
|
||||
"${compose[@]}" exec -T native "$binary" cleanup --config "$config" --state "$state"
|
||||
fixture cleaned "$name"
|
||||
# A finished job stays finished and does not claim the target again.
|
||||
"${compose[@]}" exec -T native "$binary" finalize --config "$config" --state "$state" --writers-stopped
|
||||
fixture cleaned "$name"
|
||||
completed=true
|
||||
echo 'PASS: native libcephfs without FUSE/rsync, blockdiff, snapshots, links, ACLs, xattrs, quotas, cancellation, SIGKILL resume, unrelated writers, finalization, snapshot cleanup'
|
||||
Reference in new issue
Block a user