Bug 1176275 - Changing mtime using touch doesn't copy master file to slave with tar+ssh
Summary: Changing mtime using touch doesn't copy master file to slave with tar+ssh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: 2.1
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
: ---
Assignee: Aravinda VK
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: consistency
Depends On:
Blocks: 1172332 1176934
TreeView+ depends on / blocked
 
Reported: 2014-12-19 22:48 UTC by Harshavardhana
Modified: 2019-03-22 07:29 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1176934 (view as bug list)
Environment:
Last Closed: 2015-04-21 10:17:13 UTC
Embargoed:


Attachments (Terms of Use)

Comment 3 Aravinda VK 2014-12-23 15:54:08 UTC
Patch sent to upstream to sync atime and mtime.
http://review.gluster.org/#/c/9331/

This patch will not sync data since no data operation recorded in changelog when used touch.

Comment 4 Kotresh HR 2014-12-24 19:34:56 UTC
Since touch doesn't initiate a data transfer in geo-replication and is not expected, a virtual xattr "glusterfs.geo-rep.trigger-sync" is provided to initiate data sync explicitly. 

Usage:
setfattr -n glusterfs.geo-rep.trigger-sync -v "1" <file-path>

Patch posted upstream and downstream 

Upstream Patch: (master)
http://review.gluster.org/#/c/9337/

Downstream Patch: (2.1)
https://code.engineering.redhat.com/gerrit/#/c/39125/

Comment 8 Vivek Agarwal 2015-04-21 10:17:13 UTC
Per discussion with the team, this is already fixed in 2.1/3.0, closing this bug, please reopen if you see this again


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