Bug 2248639 - cephfs-mirror: ceph_getxattr call always return -61 (ENODATA) in PeerReplayer::synchronize
Summary: cephfs-mirror: ceph_getxattr call always return -61 (ENODATA) in PeerReplayer...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 7.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 7.1
Assignee: Jos Collin
QA Contact: Hemanth Kumar
Akash Raj
URL:
Whiteboard:
Depends On: 2248637
Blocks: 2267614 2298578 2298579
TreeView+ depends on / blocked
 
Reported: 2023-11-08 05:26 UTC by Jos Collin
Modified: 2024-07-18 07:59 UTC (History)
7 users (show)

Fixed In Version: ceph-18.2.1-5.el9cp
Doc Type: Bug Fix
Doc Text:
.cephfs-mirroring overall performance is improved With this fix, the incremental snapshot sync is corrected, which improves the overall performance of cephfs-mirroring.
Clone Of: 2248637
Environment:
Last Closed: 2024-06-13 14:22:59 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 63099 0 None None None 2023-11-08 05:26:17 UTC
Red Hat Issue Tracker RHCEPH-7868 0 None None None 2023-11-08 05:27:46 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:23:03 UTC

Description Jos Collin 2023-11-08 05:26:17 UTC
+++ This bug was initially created as a clone of Bug #2248637 +++

Description of problem:
ceph_getxattr() call always return -61 (ENODATA) in PeerReplayer::synchronize, which results in 'prev' snapshot always coming in as boost::none in PeerReplayer::do_synchronize function. Even if the ceph_fsetxattr seems successfully setting (returns 0) the 'ceph.mirror.dirty_snap_id' in the first pass, the ceph_getxattr() call always returns ENODATA in the subsequent passes (and in further snapshot creations) for the same dir_root. It never retrieves the xattr value from the dir_root. This prevents incremental snapshot synchronisation, as the `prev` snapshot is always coming in as none. 

Version-Release number of selected component (if applicable):
7.0
How reproducible:
Always

Steps to Reproduce:
1. Create a snapshot.
2. Make some changes to the dirs/files.
3. Create a second snapshot. Then it won't sync incrementally, as 'prev' is always none.

Actual results:
'prev' snapshot is none, even if it exist.

Expected results:
'prev' snapshot should have it's address if it exist.

Additional info:
As the prev snapshot is always none, this issue would have a performance impact on snapshot synchronisation.

Comment 10 errata-xmlrpc 2024-06-13 14:22:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:3925


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