Skip to content

messages/MOSDECSubOpReadReply: drop the read data in clear_buffers() - #73282

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
ming1:wip-82369-ec-read-reply-clear-buffers
Nov 21, 2026
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
ming1:wip-82369-ec-read-reply-clear-buffers

Conversation

@ming1

@ming1 ming1 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

On pools with allow_ec_optimizations, the primary copies, rather than moves, the data of each EC read reply, so a reply kept in the op history holds that data for up to 600 s. Drop it in MOSDECSubOpReadReply::clear_buffers(), as MOSDOp and MOSDECSubOpWrite do.

Tested on vstart (k=3 m=2): after a 4 MiB read the primary held 2.8 MiB; with this change, 10 KiB.

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

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)

On pools with allow_ec_optimizations, the primary copies, rather than
moves, the data of each EC read reply, so a reply kept in the op history
holds that data for up to 600 s.

Drop it in clear_buffers(), as MOSDOp and MOSDECSubOpWrite do.

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

@aainscow aainscow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath8-testing-20261114.052149-main.

@MattyWilliams22

Copy link
Copy Markdown
Contributor

@SrinivasaBharath
SrinivasaBharath merged commit c4fe4f2 into ceph:main Nov 21, 2026
20 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/44867731943

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants