Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30427

Retry file move with NoSuchFileException but the file exists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF48, 11.5, 2021.4
    • Component/s: Core
    • Tags:
    • Backlog priority:
      900
    • Team:
      FG
    • Sprint:
      nxFG 11.3.1

      Description

      Under unknown circumstances, but mainly under high load, the call to Files#move in FileBlob#moveTo fails randomly with a NoSuchFileException error whereas the file does exist.

      Some workarounds have been found:

      • replacing Files#move with FileUtils#moveFile
      • trying again Files#move but with a temporary copy of the file, which is the same case as when a file is moved between 2 different filesystems.

      Let's implement the second case and add NoSuchFileException to the "catch" clause with AtomicMoveNotSupportedException

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.