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

FileUtils.forceDelete may silently not delete directories

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.11.0
    • None
    • Utilities
    • None
    • I am using CentOS 7 and Java 8.

    Description

      Using Linux on NFS, if a file is in use and you delete it, the original file is in fact deleted but a ".nfs" file will be left in the directory until the thread or process using the file releases its handle. This prevents the directory containing from being deleted. The upshot is that if forceDelete is called on a directory and there is a file anywhere underneath it which something has open, some of the tree will not be deleted with no exception being thrown.

      I have attached a simple program which demonstrates the issue.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            danblum Daniel Blum

            Dates

              Created:
              Updated:

              Slack

                Issue deployment