Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-269

Tailer locks file from deletion/rename on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      The Tailer code works on Windows, except that it locks the file against deletion or rename.

      The test code fails to detect this, because it fails to check if the file deletion succeeds.

      This seems to be a Windows OS issue.

      A possible solution might be to keep closing and re-opening the file.

        Attachments

        1. IO-269-v3.patch
          6 kB
          Sebb
        2. ReOpen.java
          2 kB
          Sebb
        3. IO-269-v2.patch
          5 kB
          Niall Pemberton
        4. IO-269.patch
          5 kB
          Marcos Vinícius da Silva

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: