Nikolay Tikhonov created IGNITE-3083:
----------------------------------------

             Summary: Shmem loader failed with OverlappingFileLockException
                 Key: IGNITE-3083
                 URL: https://issues.apache.org/jira/browse/IGNITE-3083
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 1.5.0.final
            Reporter: Nikolay Tikhonov
            Priority: Minor


IpcSharedMemoryNativeLoader can try to get lock on a file twice in the same JVM 
in case when nodes are starting in parallel in one JVM and they loaded by 
different classloaders. 
{{java.nio.channels.OverlappingFileLockException
        at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
        at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
        at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1012)
        at java.nio.channels.FileChannel.lock(FileChannel.java:1052)
        at 
org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryNativeLoader.doLoad(IpcSharedMemoryNativeLoader.java:141)
        at 
org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryNativeLoader.load(IpcSharedMemoryNativeLoader.java:111)
        at 
org.apache.ignite.internal.util.ipc.shmem.IpcSharedMemoryServerEndpoint.start(IpcSharedMemoryServerEndpoint.java:167)
        at 
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.resetShmemServer(TcpCommunicationSpi.java:1737)
        at 
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.getNodeAttributes(TcpCommunicationSpi.java:1422)
        at 
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:219)
        at 
org.apache.ignite.internal.managers.communication.GridIoManager.start(GridIoManager.java:236)
        at 
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:861)
        at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
        at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515)
        at org.apache.ignite.Ignition.start(Ignition.java:322)}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to