Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      Windows

      Description

      If two processes or threads call forceMkdir() with the same directory there is a chance that one will throw an IOException even though a directory was correctly created (by the other process or thread).

      1. forceMkdir.patch
        0.9 kB
        Luke Quinane

        Activity

        Hide
        Luke Quinane added a comment -

        A small patch to fix the issue.

        Show
        Luke Quinane added a comment - A small patch to fix the issue.
        Hide
        Sebb added a comment -

        Thanks for the patch, applied in:

        URL: http://svn.apache.org/viewvc?rev=919263&view=rev
        Log:
        IO-207 Race condition in forceMkdir

        Modified:
        commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java

        Show
        Sebb added a comment - Thanks for the patch, applied in: URL: http://svn.apache.org/viewvc?rev=919263&view=rev Log: IO-207 Race condition in forceMkdir Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java

          People

          • Assignee:
            Unassigned
            Reporter:
            Luke Quinane
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development