Bug 2224239 - client: trigger to flush the buffer when making snapshot
Summary: client: trigger to flush the buffer when making snapshot
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 5.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 6.1z2
Assignee: Xiubo Li
QA Contact: Hemanth Kumar
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2235257
TreeView+ depends on / blocked
 
Reported: 2023-07-20 08:56 UTC by Xiubo Li
Modified: 2023-09-15 08:21 UTC (History)
5 users (show)

Fixed In Version: ceph-17.2.6-126.el9cp
Doc Type: Bug Fix
Doc Text:
.Snapshot data is no longer lost after setting `writing` flags Previously, in clients, if the `writing` flag was set to ‘1’ when the `Fb` caps were used, it would be skipped in case of any dirty caps and reuse the existing capsnap, which is incorrect. Due to this, two consecutive snapshots would be overwritten and lose data. With this fix, the `writing` flags are correctly set and no snapshot data is lost.
Clone Of:
: 2224241 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 59343 0 None None None 2023-07-20 08:58:37 UTC
Red Hat Issue Tracker RHCEPH-7047 0 None None None 2023-07-20 08:57:49 UTC

Description Xiubo Li 2023-07-20 08:56:16 UTC
When making snapshots if the Fb is being used because of the buffer is not flushed yet. Then it will defer flushing the snapcap back to MDS.

And then if the file is overwrote and then a new snapshot is made then the first snapcap will be overwrote too.

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

Comment 1 RHEL Program Management 2023-07-20 08:56:34 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.


Note You need to log in before you can comment on or make changes to this bug.