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

IgniteTxManager.idMap possible memory leak

    XMLWordPrintableJSON

Details

    Description

      CacheContinuousQueryAsyncFailoverMvccTxSelfTest.testMultiThreadedFailover sometimes finished with OMM.

      Heapdump analyze showed that leak happened in IgniteTxManager.idMap, this map contains 2_097_152 instances of GridNearTxLocal with ACTIVE state and without finishFut and prepFut.

       

      while (!updated) {
       try {
       prevVal = (Integer)qryClnCache.getAndPut(key, val);
      updated = true;
       }
       catch (CacheException e) {
       assertSame(atomicityMode(), CacheAtomicityMode.TRANSACTIONAL_SNAPSHOT);
       }
       }
      

       

       

      Possible the CacheException is common and may hide wrong cases. Change it at specific (ignite-10976).  

      Attachments

        Issue Links

          Activity

            People

              rkondakov Roman Kondakov
              mstepachev Stepachev Maksim
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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