Skip to content

messages/MOSDPGPush: drop the pushed data in clear_buffers() - #73248

Closed
ming1 wants to merge 1 commit into
ceph:mainfrom
ming1:wip-82303-pgpush-clear-buffers
Closed

ming1 wants to merge 1 commit into
ceph:mainfrom
ming1:wip-82303-pgpush-clear-buffers

Conversation

@ming1

@ming1 ming1 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

MOSDPGPush has no clear_buffers(), so a recovery push kept in the op history keeps the object data it carried: up to 20 pushes of up to 8 MiB per OSD, for osd_op_history_duration (600 s). Clear each PushOp's data, omap and xattrs, as MOSDOp and MOSDECSubOpWrite do; dump_historic_ops still shows the push.

Tested on a vstart cluster: after one 4 MiB object is recovered, the target holds it (bluestore_writing in dump_mempools) for 606 s without the change and frees it at once with it.

Fixes: https://tracker.ceph.com/issues/82303

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

MOSDPGPush has no clear_buffers(), so a push kept in the op history
keeps its object data alive for osd_op_history_duration (600 s). Clear
each PushOp's data, omap and xattrs, as MOSDOp and MOSDECSubOpWrite do;
dump_historic_ops still shows the push.

Fixes: https://tracker.ceph.com/issues/82303
Signed-off-by: Ming Lei <[email protected]>
@dvanders

Copy link
Copy Markdown
Contributor

Thanks Ming, this is the same change as #72885 (tracker 81945), which I opened on Oct 20. It clears the same four fields in clear_buffers(). It's approved by @rzarzynski and @kamoltat, passes CI, and is waiting for QA.

Could you close this one in favour of #72885, and mark tracker 82303 as a duplicate of 81945? Your measurement is a nice confirmation (the pushed data is freed at once instead of after 606 s), so I'll add it to #72885's description, if that's OK with you.

@ming1

ming1 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks Ming, this is the same change as #72885 (tracker 81945), which I opened on Oct 20. It clears the same four fields in clear_buffers(). It's approved by @rzarzynski and @kamoltat, passes CI, and is waiting for QA.

Could you close this one in favour of #72885, and mark tracker 82303 as a duplicate of 81945? Your measurement is a nice confirmation (the pushed data is freed at once instead of after 606 s), so I'll add it to #72885's description, if that's OK with you.

sure, will close it soon.

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.

2 participants