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

Fix wrong GridCacheMapEntry startVersion initialization.

    XMLWordPrintableJSON

    Details

      Description

      GridCacheMapEntry initialize startVersion in wrong way.
      This leads to IgnitePdsWithTtlTest.testTtlIsAppliedAfterRestart failure and reason is "Entry which should be expired by TTL policy is available after grid restart."

       

      Test was added during https://issues.apache.org/jira/browse/IGNITE-5874 development.

      This test restarts grid and checks all entries are not present in grid.

      But with high possiblity one from 7000 entries to be expired is resurrected instead and returned by cache get.

      After timeout {{
      >>> 
      >>> Cache memory stats [igniteInstanceName=db.IgnitePdsWithTtlTest0, cache=expirableCache]
      >>>  Cache size: 0
      >>>  Cache partition topology stats [igniteInstanceName=db.IgnitePdsWithTtlTest0, grp=group1]
      >>> 
      >>> Cache event manager memory stats [igniteInstanceName=db.IgnitePdsWithTtlTest0, cache=expirableCache, stats=N/A]
      >>>
      >>> Query manager memory stats [igniteInstanceName=db.IgnitePdsWithTtlTest0, cache=expirableCache]
      >>>   threadsSize: 0
      >>>   futsSize: 0
      >>>
      >>> TTL processor memory stats [igniteInstanceName=db.IgnitePdsWithTtlTest0, cache=expirableCache]
      >>>   pendingEntriesSize: 0
      }} After timeout
      

      https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8&testNameId=5798755758125626876&tab=testDetails&branch_IgniteTests24Java8=%3Cdefault%3E

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amashenkov Andrey Mashenkov
                Reporter:
                dpavlov Dmitry Pavlov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: