Bug 1422818

Summary: [Geo-rep] Recreating geo-rep session with same slave after deleting with reset-sync-time fails to sync
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: geo-replicationAssignee: Kotresh HR <khiremat>
Status: CLOSED EOL QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.9CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1422760 Environment:
Last Closed: 2017-03-08 09:35:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1422760, 1422819    
Bug Blocks: 1422811    

Description Kotresh HR 2017-02-16 10:35:34 UTC
+++ This bug was initially created as a clone of Bug #1422760 +++

Description of problem:
When geo-rep session is deleted with the option reset-sync-time and the data on slave is deleted, the recreation of session with same old slave volume is not syncing data from master to slave. It is observed, it happens only if the data to slave is synced via xsync before deletion of the geo-rep session. Only entries under root are being synced.

Version-Release number of selected component (if applicable):
mainline

How reproducible:
Always

Steps to Reproduce:
1.  Create geo-rep session between 'master' and 'slave' volume.
2.  Set change-detector to 'xsync'
3.  Create data on master and let it sync to slave
4.  Delete geo-rep session with 'reset-rsync-time'
5.  Delete data on slave volume.
6.  Recreate geo-rep session with same master and slave volume
7.  Start the geo-rep

Actual results:
Only first level entries under root are being synced and rest are not synced.

Expected results:
It is expected all the data from master is synced again.

Additional info:

--- Additional comment from Kotresh HR on 2017-02-16 00:53:46 EST ---

Patch posted: https://review.gluster.org/#/c/16629/1

Comment 1 Worker Ant 2017-02-16 10:37:36 UTC
REVIEW: https://review.gluster.org/16642 (geo-rep: Fix xsync crawl) posted (#1) for review on release-3.9 by Kotresh HR (khiremat)