Bug 1535526

Summary: glusterfind : wrong results while retrieving incremental list of files modified after last run
Product: [Community] GlusterFS Reporter: Bhupeshraj <bhupeshrajs>
Component: glusterfindAssignee: bugs <bugs>
Status: CLOSED EOL QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.10CC: avishwan, bugs, dwojslaw, khiremat
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: 2018-06-20 18:26:41 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 Bhupeshraj 2018-01-17 14:58:25 UTC
Description of problem: glusterfind : wrong results while retrieving incremental list of files modified after last run

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


How reproducible: 100%


Steps to Reproduce:

1. Consider we have a folder in gluster volume 

Folder1/
       File1.txt
       File2.txt


Note current time as t1.


2. Now perform these operations : 

    Create a New Folder Folder2 with files File3.txt and File4.txt.
    Delete Folder1
    Rename Folder2 to Folder1.

    Now gluster volume will contain :

    Folder1/
           File3.txt
           File4.txt

3. Perform glusterfind query --since-time=t1 glustervolume output.txt


Actual results:

NEW /mnt/glusterfs/Folder1
NEW /mnt/glusterfs/Folder1/File3.txt
NEW /mnt/glusterfs/Folder1/File4.txt
DELETE /mnt/glusterfs/Folder1/File1.txt
DELETE /mnt/glusterfs/Folder1/File2.txt
DELETE /mnt/glusterfs/Folder1

Expected results:

NEW /mnt/glusterfs/Folder1/File3.txt
NEW /mnt/glusterfs/Folder1/File4.txt
DELETE /mnt/glusterfs/Folder1/File1.txt
DELETE /mnt/glusterfs/Folder1/File2.txt

Or

DELETE /mnt/glusterfs/Folder1/File1.txt
DELETE /mnt/glusterfs/Folder1/File2.txt
DELETE /mnt/glusterfs/Folder1
NEW /mnt/glusterfs/Folder1
NEW /mnt/glusterfs/Folder1/File3.txt
NEW /mnt/glusterfs/Folder1/File4.txt

Additional info : This is reproducible 100 %

Comment 1 Shyamsundar 2018-06-20 18:26:41 UTC
This bug reported is against a version of Gluster that is no longer maintained (or has been EOL'd). See https://www.gluster.org/release-schedule/ for the versions currently maintained.

As a result this bug is being closed.

If the bug persists on a maintained version of gluster or against the mainline gluster repository, request that it be reopened and the Version field be marked appropriately.