Bug 1262692 - [BACKUP]: Output file has new entry for file creation before its parent creation
[BACKUP]: Output file has new entry for file creation before its parent creation
Status: NEW
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfind (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Bug Updates Notification Mailing List
Sweta Anandpara
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2015-09-14 02:23 EDT by Rahul Hinduja
Modified: 2018-03-13 03:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rahul Hinduja 2015-09-14 02:23:49 EDT
Description of problem:

Created data set by following cli:

for i in {1..999} ; do mkdir dir.$i ; touch dir.$i/file.$i ; done

It created directory with dir.$i and created a file inside it. But when the output file is generated using glusterfind pre. For some files, the order for file creation is before its directory creation.


Output file entries with line number:
File Creation:

    933 NEW dir.542%2F%2Ffile.542
    934 NEW dir.544%2F%2Ffile.544
    935 NEW dir.545%2F%2Ffile.545
    936 NEW dir.546%2F%2Ffile.546

Directory creation:

   1090 NEW dir.544
   1091 NEW dir.545
   1092 NEW dir.546
   1093 NEW dir.547
   1094 NEW dir.548
   1095 NEW dir.549

The order difference is for few files, This file if used in backup will fail as the parent directory doesn't exist. OR will have inconsistent data.

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


How reproducible:

Steps to Reproduce:
1. Create number of directories and files inside them
2. Use glusterfind pre to generate the output file

Actual results:
Order of some file is incorrect. Entry for file creation is before the creation of parent directory.

Expected results:
Entry should be first for parent directory followed by entry for file

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