You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Daschinsky (Jira)" <ji...@apache.org> on 2021/07/12 15:27:00 UTC

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

    [ https://issues.apache.org/jira/browse/IGNITE-12749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379223#comment-17379223 ] 

Ivan Daschinsky edited comment on IGNITE-12749 at 7/12/21, 3:26 PM:
--------------------------------------------------------------------

[~ilyak] +1. It seems that original ticket was created almost a year ago and I suppose that [~antkr] already fixed it by recreating map. 


was (Author: ivandasch):
[~ilyak] +1. I suppose that original ticket was created almost a year ago, I suppose that [~antkr] already fixed it by recreating map. 

> 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
>            Assignee: Yaroslav Molochkov
>            Priority: Major
>              Labels: newbie
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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)