Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23254

DFS - tmp files left if the file size is not identical to the original one

    XMLWordPrintable

    Details

      Description

      EZP-21825 fix some of the temporary files left in the file system if there's a failure in the copy/rename process between the local and the NFS file systems.

      But, if after the copy the file size of the original and the copied file are different, the tempo files will be left undeleted.

      Steps to Reproduce

      This is a hard issue to reproduce since it will only happen if there are any NFS errors, but it's possible to achieve the same reproduce.
      Edit

      + if( $loopCount != $this->maxCopyTries )
      +{
      +   $dfsFileSize += 10;
      +   $localFileSize -= 10;  
      +}
      $localFileSize = filesize( $filePath );
      if ( $dfsFileSize == $localFileSize )
      {
      	return $filePath;
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: