bugfindutils - Bugs: bug #45930, -ignore_readdir_race ineffective...

 
 

bug #45930: -ignore_readdir_race ineffective in find 4.5.11 and 4.5.14

Submitted by:  None
Submitted on:  Fri 11 Sep 2015 01:05:25 PM UTC  
Votes:  10  
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Rainer Canavan Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.5.14
Fixed Release:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 18 Aug 2017 01:20:42 AM UTC, comment #2:

I can confirm the issue with CentOS7. Package info: findutils-4.5.11-5.el7.x86_64

Have a CRON that runs on multiple machine at the same time. Part of the script remove old log file in a common NFS folder.
It uses 'find' for this and checks the file timestamp (mtime)

It's pretty much guaranteed to get into a race condition with this specific setup (NFS mount..).

Using -ignore_readdir_race does not seem to have any effect.

Alex <arekkusu>
Fri 11 Sep 2015 01:17:57 PM UTC, comment #1:

I haven't tried other filesystems or kernels, the ones used are xfs (rw,noatime,attr2,inode64,noquota) and linux 3.10.0-229.11.1.el7.x86_64

Rainer Canavan <canavan>
Fri 11 Sep 2015 01:05:25 PM UTC, original submission:

We have a cron job that is used to clean cache directories. There's a log going on in that directory, especially files getting moved from temporary names to their final names after they have been written completely. We have noticed that the find that is supplied with Centos7 (version 4.5.11) as well as a find 4.5.14 built from unmodified source frequently prints "No such file or directory" errors for the initial filenames of the temporary files, despite the fact that we have specified -ignore_readdir_race, e.g.:

/usr/bin/find: ‘./engine/projects/portal/istmp1NYV9b’: No such file or directory

This does not happen with a find 4.4.2 compiled from source. A trivial find in the "busy" directory is sufficient to triffer the error message almost 100% of the time:

find . -ignore_readdir_race > /dev/null

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arekkusu (Posted a comment)
  • -email is unavailable- added by arekkusu (Voted in favor of this item)
  • -email is unavailable- added by canavan (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-18 arekkusu Carbon-Copy- => Added arekkusu

    Back to the top


    Powered by Savane 3.3