Bug 1036645

Summary: Dist-geo-rep : geo-rep status detail files synced shows values in negative when there are lot creates and deletes operation.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaykumar Koppad <vkoppad>
Component: geo-replicationAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED NEXTRELEASE QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: medium    
Version: 2.1CC: aavati, avishwan, csaba, david.macdonald
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: status
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-06 14:31:08 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:

Description Vijaykumar Koppad 2013-12-02 12:23:12 UTC
Description of problem: When there are too many unlink and create in the changelogm, the geo-rep status shows files synced in negative values,

[root@redcell ~]# gluster v geo master 10.70.43.76::slave status detail

MASTER NODE                MASTER VOL    MASTER BRICK             SLAVE                  STATUS     CHECKPOINT STATUS    CRAWL STATUS       FILES SYNCD    FILES PENDING    BYTES PENDING    DELETES PENDING    FILES SKIPPED
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
redcell.blr.redhat.com     master        /bricks/master_brick1    10.70.43.174::slave    Active     N/A                  Changelog Crawl    -3002          0                0                0                  3621
redlake.blr.redhat.com     master        /bricks/master_brick3    10.70.43.135::slave    Active     N/A                  Changelog Crawl    -2781          0                0                0                  3344
redcloak.blr.redhat.com    master        /bricks/master_brick2    10.70.43.76::slave     Passive    N/A                  N/A                0              0                0                0                  0
redwood.blr.redhat.com     master        /bricks/master_brick4    10.70.42.151::slave    Passive    N/A                  N/A                0              0                0                0                  0



Version-Release number of selected component (if applicable):glusterfs-3.4.0.45geo-1


How reproducible:Didn't try to reproduce, but it can be reproduced easily with steps given below


Steps to Reproduce:
1.create and start a geo-rep relationship between master and slave
2. run following command on master mount point, 
./crefi.py -n 100 --multi -b 10 -d 10 --random --max=2K --min=1K -t tar /mnt/master/test/
3.wait for it to complete

Actual results: the status detail shows negative values for files synced 


Expected results: It shouldn't show negative values in status detail. It is disastrous.


Additional info:

Comment 3 Aravinda VK 2015-08-06 14:31:08 UTC
files synced column is removed from status output in RHGS 3.1. If we introduce percistent store while working on RFE 988857, we can show number of Files synced. But with the existing limitation, this column is removed since it will mislead the user. Closing this bug for the same reason. Please reopen this bug if the issue is found again.