Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8142906

"find" on solaris can crash on concurrent filesystem write

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • None
    • 9
    • infrastructure
    • None

    Description

      We have noted cases where running "find" on solaris on a directory, where another process is concurrently writing files, can cause find to crash. It seems that if a file is deleted after find has discovered it but not gathered all needed information (?), it exits with the following message:

      /usr/ccs/bin/find: stat() error $MODIFIED_FILE: No such file or directory

      (Apparently, we're not the only ones affected by this: https://community.oracle.com/thread/1909140?start=0&tstart=0)

      I'm thinking three ways to address this, in order of preference:
       
      1) Check if there are Solaris patches that fixes find

      2) Check if we can include GNU find in the solaris devkits

      3) Write a wrapper around find that catches failures and retries a reasonable number of times, hoping that any failure is unlikely and intermittent.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ihse Magnus Ihse Bursie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: