[jira] [Created] (IGNITE-12749) Unsupported operation exception on node stop if collisionspi not null

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-12749) Unsupported operation exception on node stop if collisionspi not null

Anton Vinogradov (Jira)
Nikolay Izhikov created IGNITE-12749:
----------------------------------------

             Summary: Unsupported operation exception on node stop if collisionspi not null
                 Key: IGNITE-12749
                 URL: https://issues.apache.org/jira/browse/IGNITE-12749
             Project: Ignite
          Issue Type: Bug
            Reporter: Nikolay Izhikov


If collision spi specified then on the node stop there are exception:
{noformat}
java.lang.UnsupportedOperationException
        at org.jsr166.ConcurrentLinkedHashMap.clear(ConcurrentLinkedHashMap.java:1542)
        at org.apache.ignite.internal.processors.job.GridJobProcessor.stop(GridJobProcessor.java:376)
        at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2697)
        at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2569)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2660)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2623)
        at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:339)
        at org.apache.ignite.Ignition.stop(Ignition.java:223)
        at org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1316)
        at org.apache.ignite.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractTest.java:1361)

 {noformat}


The issue in the next line:

{code:java}
    public GridJobProcessor(GridKernalContext ctx) {
        // Collision manager is already started and is fully functional.
        jobAlwaysActivate = !ctx.collision().enabled();


        activeJobs = jobAlwaysActivate ? new ConcurrentHashMap<IgniteUuid, GridJobWorker>() :
            new JobsMap(1024, 0.75f, 256);
{code}

We need replace JobsMap with the correct implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)