"pbm delete-pitr" doesn't remove pitr slices
Description
Environment
Version: 1.6.0
Platform: linux/amd64
GitCommit: 134734c96779b56bc650e94f164fd9d0f9a64ce8
GitBranch: release-1.6.0
BuildTime: 2021-08-12_18:36_UTC
GoVersion: go1.15.11
Attachments
- 02 Sep 2021, 04:30 PM
Smart Checklist
Activity
Sandra Romanchenko June 13, 2024 at 8:19 AM
Operation pbm list
is designed to show only successfully completed backups and available PITR slices. All active operations are shown in pbm status
as well as in pbm logs
, so please use either of those commands to check the status of operations running in background:
pbm delete-pitr -a
PITR chunks (by replset name):
rs1:
- 2024-06-13T08:06:44Z - 2024-06-13T08:07:43Z
config:
- 2024-06-13T08:06:44Z - 2024-06-13T08:10:16Z
rs2:
- 2024-06-13T08:06:44Z - 2024-06-13T08:07:46Z
Are you sure you want to delete ALL chunks? [y/N] y
Processing by agents. Please check status later
=======================================================
pbm status
Currently running:
Delete PITR chunks [op id: 666aa96c9aee77e93b50882b]
=======================================================
pbm logs -e deletePitr
2024-06-13T08:10:21Z I [config/localhost:27029] [deletePitr/2024-06-13T08:10:19Z] deleting pitr chunks older than 2024-06-13 08:10:19 +0000 UTC
2024-06-13T08:10:21Z I [config/localhost:27029] [deletePitr/2024-06-13T08:10:19Z] done
=======================================================
Damith Gunner September 2, 2021 at 5:15 PM
yes if i was shown the following which `pbm status` does, i could have avoided the confusion
Currently running:
==================
Delete PITR chunks [op id: 6130f95673156aff5095b241]
andrew.pogrebnoi September 2, 2021 at 5:07 PM
Hi @Damith Gunner,
Thanks for the reporting!
I'll leave the ticket open as we have to look at how to improve this behaviour.
Quite a lot of files (chunks) should be deleted from the storage itself. And since an agent will delete each file individually it may take quite some time. It should be improved.
Should we also show active operations in the `pbm list` output so the user would be aware?
Damith Gunner September 2, 2021 at 4:47 PM
actually... i just realized that the pitr slices are being deleted very slowly. maybe you should update the docs regarding the behavior of deleting slices. i expected it to be an instant operation. you can close this ticket as it is working.
Details
Assignee
Sandra RomanchenkoSandra RomanchenkoReporter
Damith GunnerDamith GunnerNeeds QA
YesAffects versions
Priority
High
Details
Details
Assignee
Reporter
Needs QA
Affects versions
Priority
Smart Checklist
Open Smart Checklist
Smart Checklist
Open Smart Checklist
Smart Checklist

before running `pbm delete-pitr` i have the following slice range
PITR <on>: 2021-08-24T04:00:45 - 2021-09-02T16:11:54
if i do a `pbm list` after running `pbm delete-pitr --all` i still get the same slices and nothing was deleted.
pls see attached txt file for more info.