Bug 1471963 - Glusterfind : Move Operations performed in the Filesystem are not reported correctly
Glusterfind : Move Operations performed in the Filesystem are not reported co...
Status: CLOSED EOL
Product: GlusterFS
Classification: Community
Component: glusterfind (Show other bugs)
3.10
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: bugs@gluster.org
bugs@gluster.org
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-17 15:25 EDT by Bhupeshraj
Modified: 2018-06-20 14:28 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-20 14:28:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bhupeshraj 2017-07-17 15:25:12 EDT
Description of problem: Move operations performed in the Filesystem are not reported correctly by the glusterfind query API.


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


How reproducible: 100% (also in earlier version 3.7.12)


Steps to Reproduce:
1. Create Folders using mkdir -p dir1/dir2/dir3 at mount point
2. Note the time after creating the folders in Step 1 as t1.
3. Execute the following move commands :

             mv dir1/dir2/dir3 dir3
             mv dir1 dir3

4. The current directory structure is dir3/dir1/dir2

5. Execute glusterfind query volume-name outfile --since-time=t1 . i.e Find the incremental changes that happened after Step 1.  

Actual results: The glusterfind query returned :

              RENAME dir3/dir1/dir2/dir3 dir3
              RENAME dir1 dir3/dir1


Expected results: The first result of the glusterfind query should be

              RENAME dir1/dir2/dir3 dir3

Additional info: The same error can be seen in different move cases:

Consider the following directory structure:

             Folder1\
                     File1.txt
             Folder2\

       Note the time as t2.

       Perform the following move/rename operations

       mv Folder1/File1.txt Folder1/File2.txt
       mv Folder1/ Folder2/

       Executing the glusterfind query command using --since-time=t2 yields the following results
       
       RENAME Folder2/Folder1/File1.txt Folder2/Folder1/File2.txt
       RENAME Folder1 Folder2/Folder1

       The first result is wrong. The expected first result should be
       
       RENAME Folder1/File1.txt Folder1/File2.txt
Comment 1 Shyamsundar 2018-06-20 14:28:22 EDT
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.

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