Bug #77992
closedcephfs-mirror: after sync, removed checkpoint reappears in the list
0%
Description
If a checkpoint is removed during the checkpointed snapshot being syncing, it reappears on the checkpoint ls after the sync completes. This seems to be a cache invalidation issue on the mirror daemon, where it still reads the old cached metadata after the sync completion even though the mirroring module has removed the checkpoint metadata when it was syncing.
During sync:
--------------------------------------------------
peer status
{
"metrics": {
"/dir_1": {
"peer": {
"90942680-9267-4d94-af5f-ee2391024ca2": {
"state": "syncing",
"current_syncing_snap": {
"id": 5,
"name": "snap_4",
"sync-mode": "delta",
"avg_read_throughput_bytes": "398.56 MiB/s",
"avg_write_throughput_bytes": "63.33 MiB/s",
"crawl": {
"state": "completed",
"duration": "0s"
},
"datasync_queue_wait": {
"state": "completed",
"duration": "0s"
},
"bytes": {
"sync_bytes": "500.00 MiB",
"total_bytes": "4.88 GiB",
"sync_percent": "10.00%"
},
"files": {
"sync_files": 1,
"total_files": 10,
"sync_percent": "10.00%"
},
"eta": "1m 05s"
},
"last_synced_snap": {
"id": 4,
"name": "snap_3",
"crawl_duration": "0s",
"datasync_queue_wait_duration": "0s",
"sync_duration": "30s",
"sync_time_stamp": "93764.434480s",
"sync_bytes": "4.39 GiB",
"sync_files": 9
},
"snaps_synced": 3,
"snaps_deleted": 0,
"snaps_renamed": 0
}
}
}
}
}
checkpoint ls
{
"dir_root": "/dir_1",
"checkpoints": [
{
"snap_id": 3,
"snap_name": "snap_2",
"status": "complete",
"created_at": "2026-07-03T16:47:36.128195+0530",
"updated_at": "2026-07-03T16:47:38.822353+0530"
},
{
"snap_id": 4,
"snap_name": "snap_3",
"status": "complete",
"created_at": "2026-07-03T16:50:09.759324+0530",
"updated_at": "2026-07-03T16:50:25.484690+0530"
},
{
"snap_id": 5,
"snap_name": "snap_4",
"status": "created",
"created_at": "2026-07-03T17:02:48.846819+0530",
"updated_at": "2026-07-03T17:02:48.846819+0530"
}
]
}
After checkpoint removal, sync still in progress:
--------------------------------------------------
peer status
{
"metrics": {
"/dir_1": {
"peer": {
"90942680-9267-4d94-af5f-ee2391024ca2": {
"state": "syncing",
"current_syncing_snap": {
"id": 5,
"name": "snap_4",
"sync-mode": "delta",
"avg_read_throughput_bytes": "393.53 MiB/s",
"avg_write_throughput_bytes": "35.51 MiB/s",
"crawl": {
"state": "completed",
"duration": "0s"
},
"datasync_queue_wait": {
"state": "completed",
"duration": "0s"
},
"bytes": {
"sync_bytes": "2.44 GiB",
"total_bytes": "4.88 GiB",
"sync_percent": "50.00%"
},
"files": {
"sync_files": 5,
"total_files": 10,
"sync_percent": "50.00%"
},
"eta": "53s"
},
"last_synced_snap": {
"id": 4,
"name": "snap_3",
"crawl_duration": "0s",
"datasync_queue_wait_duration": "0s",
"sync_duration": "30s",
"sync_time_stamp": "93764.434480s",
"sync_bytes": "4.39 GiB",
"sync_files": 9
},
"snaps_synced": 3,
"snaps_deleted": 0,
"snaps_renamed": 0
}
}
}
}
}
checkpoint ls
{
"dir_root": "/dir_1",
"checkpoints": [
{
"snap_id": 3,
"snap_name": "snap_2",
"status": "complete",
"created_at": "2026-07-03T16:47:36.128195+0530",
"updated_at": "2026-07-03T16:47:38.822353+0530"
},
{
"snap_id": 4,
"snap_name": "snap_3",
"status": "complete",
"created_at": "2026-07-03T16:50:09.759324+0530",
"updated_at": "2026-07-03T16:50:25.484690+0530"
}
]
}
After sync completion:
--------------------------------------------------
peer status
{
"metrics": {
"/dir_1": {
"peer": {
"90942680-9267-4d94-af5f-ee2391024ca2": {
"state": "idle",
"last_synced_snap": {
"id": 5,
"name": "snap_4",
"crawl_duration": "0s",
"datasync_queue_wait_duration": "0s",
"sync_duration": "33s",
"sync_time_stamp": "94541.380390s",
"sync_bytes": "4.88 GiB",
"sync_files": 10
},
"snaps_synced": 4,
"snaps_deleted": 0,
"snaps_renamed": 0
}
}
}
}
}
checkpoint ls
{
"dir_root": "/dir_1",
"checkpoints": [
{
"snap_id": 3,
"snap_name": "snap_2",
"status": "complete",
"created_at": "2026-07-03T16:47:36.128195+0530",
"updated_at": "2026-07-03T16:47:38.822353+0530"
},
{
"snap_id": 4,
"snap_name": "snap_3",
"status": "complete",
"created_at": "2026-07-03T16:50:09.759324+0530",
"updated_at": "2026-07-03T16:50:25.484690+0530"
},
{
"snap_id": 5,
"snap_name": "snap_4",
"status": "complete",
"created_at": "",
"updated_at": "2026-07-03T17:03:22.431061+0530"
}
]
}
VS Updated by Venky Shankar 5 months ago
- Target version set to v22.0.0
- Backport set to umbrella, tentacle, squid
KU Updated by Karthik U S 5 months ago
- Status changed from New to Fix Under Review
- Target version deleted (
v22.0.0) - Backport deleted (
umbrella, tentacle, squid) - Pull request ID set to 70221
KU Updated by Karthik U S 5 months ago
- Target version set to v22.0.0
- Backport set to umbrella, tentacle, squid
UB Updated by Upkeep Bot 23 days ago
- Copied to Backport #82991: umbrella: cephfs-mirror: after sync, removed checkpoint reappears in the list added
UB Updated by Upkeep Bot 23 days ago
- Copied to Backport #82992: tentacle: cephfs-mirror: after sync, removed checkpoint reappears in the list added
UB Updated by Upkeep Bot 23 days ago
- Copied to Backport #82993: squid: cephfs-mirror: after sync, removed checkpoint reappears in the list added
UB Updated by Upkeep Bot 23 days ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to e01a5bc1603335f1f50dbfd8c4dd5ed5a488e320
- Fixed In set to v22.0.0-651-ge01a5bc160
- Upkeep Timestamp set to 2026-11-10T13:26:39+00:00