Bug 2248637 - 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: 6.1
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 6.1z4
Assignee: Jos Collin
QA Contact: Hemanth Kumar
Disha Walvekar
URL:
Whiteboard:
Depends On:
Blocks: 2248639 2261930
TreeView+ depends on / blocked
 
Reported: 2023-11-08 05:07 UTC by Jos Collin
Modified: 2024-02-08 18:13 UTC (History)
7 users (show)

Fixed In Version: ceph-17.2.6-178.el9cp
Doc Type: Bug Fix
Doc Text:
Fixes the incremental snapshot sync, which improves the overall performance of cephfs-mirroring.
Clone Of:
: 2248639 (view as bug list)
Environment:
Last Closed: 2024-02-08 18:13:05 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:07:05 UTC
Red Hat Issue Tracker RHCEPH-7867 0 None None None 2023-11-08 05:07:48 UTC
Red Hat Product Errata RHBA-2024:0747 0 None None None 2024-02-08 18:13:13 UTC

Description Jos Collin 2023-11-08 05:07:05 UTC
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):
6.1

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 17 errata-xmlrpc 2024-02-08 18:13:05 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 (Red Hat Ceph Storage 6.1 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/RHBA-2024:0747


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