Thread: Phex on OpenVMS
View Single Post
  #2 (permalink)  
Old October 1st, 2008
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

The rename/copy operation is triggered in that order from top to bottom:

phex/download/MemoryFile.writeBuffersToDisk()
phex/download/swarming/SWDownloadFile.moveToDestinationFile()
phex/common/file/ManagedFile.renameFile( File )
phex/utils/FileUtils.renameFileMultiFallback()

Our observation shows that apparently sometimes there is a file system locking problem which seems to prevent the file operation, specially common on Windows. Or during other times, strange concurrency bugs which cause MemoryFile not detect correctly that the file has finished. Usually these problems only occur rarely. We are not sure why some people have permanent problems.
__________________
Reply With Quote