Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12749

Unsupported operation exception on node stop if collisionspi not null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      If collision spi specified then on the node stop there are exception:

      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)
      
       

      The issue in the next line:

          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);
      

      We need replace JobsMap with the correct implementation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                YAMolochkov Yaroslav Molochkov
                Reporter:
                nizhikov Nikolay Izhikov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m