Bug 1709738

Summary: geo-rep: Sync hangs with tarssh as sync-engine
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: geo-replicationAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6CC: 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: Environment:
Last Closed: 2019-05-23 11:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kotresh HR 2019-05-14 08:44:36 UTC
This bug was initially created as a copy of Bug #1707728

I am copying this bug because: 



Description of problem:
When the heavy workload as below on master, the sync is hung with sync engine tarssh. It's working fine with rsync as sync engine.

for i in {1..10000}
do
   echo "sample data" > /<mastermnt>/file$i
   mv -f /<mastermnt>/file$i /<mastermnt/file
done

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

How reproducible:
Most of the times

Steps to Reproduce:
1. Setup geo-rep with master 1*3 and slave 1*3
2. touch /<mastermnt>
3. Start geo-rep and wait till the status is changelog crawl
4. Configure sync-jobs to 1
   gluster vol geo-rep <master> <slavehost>::<slavevol> config sync-jobs 1
5. Configure sync engine to tarssh
   gluster vol geo-rep <master> <slavehost>::<slavevol> config sync-method tarssh
6. Stop the geo-rep
7. Do the I/O on mastermnt as mentioned
   for i in {1..10000}
   do
      echo "sample data" > /<mastermnt>/file$i
      mv -f /<mastermnt>/file$i /<mastermnt/file
   done
8. Start the geo-rep

Actual results:
Sync hungs

Expected results:
Sync should not hung.

Additional info:

Comment 1 Worker Ant 2019-05-14 08:54:51 UTC
REVIEW: https://review.gluster.org/22725 (geo-rep: Fix sync hang with tarssh) posted (#1) for review on release-6 by Kotresh HR

Comment 2 Worker Ant 2019-05-23 11:29:54 UTC
REVIEW: https://review.gluster.org/22725 (geo-rep: Fix sync hang with tarssh) merged (#3) on release-6 by Kotresh HR