mirror of https://github.com/apache/archiva.git
ignore ClosedChannelException
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f948d2044b
commit
3e6c7ea831
|
@ -28,6 +28,7 @@ import java.io.File;
|
|||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.nio.channels.ClosedChannelException;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
|
@ -35,7 +36,7 @@ import java.util.concurrent.ConcurrentMap;
|
|||
* @author Olivier Lamy
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Service( "fileLockManager#default" )
|
||||
@Service("fileLockManager#default")
|
||||
public class DefaultFileLockManager
|
||||
implements FileLockManager
|
||||
{
|
||||
|
@ -256,6 +257,11 @@ public class DefaultFileLockManager
|
|||
lockFiles.remove( lock.getFile() );
|
||||
lock.close();
|
||||
}
|
||||
catch ( ClosedChannelException e )
|
||||
{
|
||||
// skip this one
|
||||
log.debug( "ignore ClosedChannelException: {}", e.getMessage() );
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
throw new FileLockException( e.getMessage(), e );
|
||||
|
|
Loading…
Reference in New Issue