Skip to content

squid: mds: prevent CDir omap commit with empty updates/removals/header - #69503

Merged
batrick merged 1 commit into
ceph:squidfrom
vshankar:wip-77229-squid
Oct 26, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
vshankar:wip-77229-squid

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar vshankar added this to the squid milestone Jun 16, 2026
@vshankar vshankar added the cephfs Ceph File System label Jun 16, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jun 16, 2026
@vshankar

vshankar commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@bluikko

bluikko commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

jenkins test docs

@vshankar

vshankar commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@yuriw

yuriw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri7-testing-20261007.155121-squid.

Empty `stales` and `to_remove` causes `size` to be initialized with
sizeof(fnode_t). If the encoded inode size (plus fnode_t size) exceeds
max_dir_commit_size, commit_one() is called as a non-header update
with empty `_set` and `_rm` sets causing the MDS to assert.

While this patch prevents the assert, it is unknown at this point as
to why the encoded inode size is so large. We have seen it before
once, but there is lack of debug information to dig into. This fix
will prevent the assert, however, the MDS would go read-only due to
the large rados operation size, but at least we will have a live
system to debug at that point.

Fixes: http://tracker.ceph.com/issues/76455
Signed-off-by: Venky Shankar <[email protected]>
(cherry picked from commit 068fab6)
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Oct 20, 2026
@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor Author

Reviewed-by: Venky Shankar [email protected]

@batrick batrick modified the milestones: squid, v19.2.8 Oct 26, 2026
@batrick
batrick merged commit 0d8ae7d into ceph:squid Oct 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri7-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants