Bug 1104153 - Dist-geo-rep : geo-rep history crawl consumes even zero-byte changelogs and accumulates in .history/.processed directory of working_dir
Summary: Dist-geo-rep : geo-rep history crawl consumes even zero-byte changelogs and a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: RHGS 3.0.0
Assignee: Ajeet Jha
QA Contact: Bhaskar Bandari
URL:
Whiteboard:
Depends On:
Blocks: 1105466
TreeView+ depends on / blocked
 
Reported: 2014-06-03 11:45 UTC by Vijaykumar Koppad
Modified: 2015-05-13 16:57 UTC (History)
9 users (show)

Fixed In Version: glusterfs-3.6.0.24-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1105466 (view as bug list)
Environment:
Last Closed: 2014-09-22 19:40:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:1278 0 normal SHIPPED_LIVE Red Hat Storage Server 3.0 bug fix and enhancement update 2014-09-22 23:26:55 UTC

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


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