Bug 1104153

Summary: Dist-geo-rep : geo-rep history crawl consumes even zero-byte changelogs and accumulates in .history/.processed directory of working_dir
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaykumar Koppad <vkoppad>
Component: geo-replicationAssignee: Ajeet Jha <ajha>
Status: CLOSED ERRATA QA Contact: Bhaskar Bandari <bbandari>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.0CC: aavati, avishwan, bbandari, csaba, david.macdonald, nlevinki, nsathyan, ssamanta, vagarwal
Target Milestone: ---   
Target Release: RHGS 3.0.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.6.0.24-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1105466 (view as bug list) Environment:
Last Closed: 2014-09-22 19:40: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:    
Bug Blocks: 1105466    

Description Vijaykumar Koppad 2014-06-03 11:45:15 UTC
Description of problem: geo-rep history crawl consumes even zero-byte changelog and accumulates in .history/.processed directory of working_dir. 

snippet of the output.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# ls */.history/.processed -lrt
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792481
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792541
-rw-r--r-- 1 root root  4182 Jun  3 16:21 CHANGELOG.1401792556
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792616
-rw-r--r-- 1 root root 29406 Jun  3 16:21 CHANGELOG.1401792571
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792601
-rw-r--r-- 1 root root  4940 Jun  3 16:21 CHANGELOG.1401792586
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792676
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792661
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792646
-rw-r--r-- 1 root root     0 Jun  3 16:21 CHANGELOG.1401792631
# ls */.history/.processed -lrt | wc -l
887
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This is bad, since we unnecessarily consume inodes from root partition or wherever this working_dir is mounted. 

Version-Release number of selected component (if applicable): glusterfs-3.6.0.10-1.el6rhs

How reproducible: Happens every time. 

Steps to Reproduce:
1. create and start a geo-rep relationship between master and slave
2. stop the geo-rep 
3. wait for some time
4. create some data on master.
5. start geo-rep 

Actual results: History crawl consumes zero-byte changelogs


Expected results: History crawl should ignore zero byte changelogs. 


Additional info:

Comment 2 Aravinda VK 2014-06-04 06:01:07 UTC
Upstream patch is available for review.
http://review.gluster.org/#/c/7949/

Comment 3 ssamanta 2014-06-04 12:53:34 UTC
After discussing with the Engineering-Leads at RHS3.0 status meeting providing the qa_ack for the same.

Comment 5 Ajeet Jha 2014-06-25 11:33:26 UTC
http://review.gluster.org/#/c/7949/

Comment 6 Ajeet Jha 2014-06-25 11:35:39 UTC
Downstream Patch : https://code.engineering.redhat.com/gerrit/#/c/26666/

Comment 8 Vijaykumar Koppad 2014-07-11 10:15:04 UTC
Verified on the build glusterfs-3.6.0.24-1.el6rhs

Comment 12 errata-xmlrpc 2014-09-22 19:40:22 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHEA-2014-1278.html