Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-3191

migration-utils fails with "unable to delete directory" exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: f4-migration
    • Labels:
      None
    • Environment:
      CentOs 7 Linux, Java 11, CIFS-mounted source filesystem (Fedora 3.8.1, Akubra storage), CIFS-mounted target filesystem
    • Roadmap Theme:
      Scalability/Performance
    • Sprint:
      Fedora Q1 2020 Sprint 1

      Description

      migration-utils fails with the exception when attempting to migrate an object:

      (FileUtil) Failed to delete file: /fedora-migration-test/staging/1711.dl:4RJO2AJNM55JH82
      java.nio.file.DirectoryNotEmptyException: /fedora-migration-test/staging/1711.dl:4RJO2AJNM55JH82" when attempting to migrate this single object.
      [...]
      Unable to delete file: /fedora-migration-test/staging/1711.dl:4RJO2AJNM55JH82/BIB0

      However, the directory is empty when I examine it:

      $ find /fedora-migration-test/staging/1711.dl:4RJO2AJNM55JH82 -ls
      6952825092 0 drwxr-x--- 2 sprater sprater 0 Jan 28 17:59 /fedora-migration-test/staging/1711.dl:4RJO2AJNM55JH82

      The same object causes the same exception with every run, regardless of whether I attempt to migrate many objects, or just this one.

      Attached are the full log and the problematic object, exported in Fedora 3.x archive format.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pwinckles Peter Winckles
              Reporter:
              sprater Scott Prater
              Reviewer:
              Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: