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

CacheGroupReencryptionTest.testPartitionFileDestroyAndRecreate is flaky

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10
    • 2.11
    • None
    • None

    Description

      Test CacheGroupReencryptionTest.testPartitionFileDestroyAndRecreate is flaky on TeamCity:
      https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8&buildTypeId=IgniteTests24Java8_PdsIndexing&tab=testDetails&testNameId=-8434643757933460841&order=TEST_STATUS_DESC&branch_IgniteTests24Java8=%3Cdefault%3E&itemsCount=50

      class org.apache.ignite.IgniteCheckedException: Failed to apply page delta
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.lambda$performBinaryMemoryRestore$23(GridCacheDatabaseSharedManager.java:2199)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.lambda$stripedApplyPage$24(GridCacheDatabaseSharedManager.java:2306)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.lambda$stripedApply$25(GridCacheDatabaseSharedManager.java:2344)
      	at org.apache.ignite.internal.util.StripedExecutor$Stripe.body(StripedExecutor.java:569)
      	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.AssertionError: FullPageId [pageId=0001000e00000001, effectivePageId=0000000e00000001, grpId=1613773252]
      	at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl.acquirePage(PageMemoryImpl.java:827)
      	at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl.acquirePage(PageMemoryImpl.java:707)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.applyPageDelta(GridCacheDatabaseSharedManager.java:2400)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.lambda$performBinaryMemoryRestore$23(GridCacheDatabaseSharedManager.java:2192)
      	... 5 more

      This test seems to fail because a page scan during re-encryption may scan some pages after a checkpoint is complete, but before the partition has been destroyed. Thus, it can create WAL records targeting the previous (destroyed) version of the partition, which should not be applied to the re-created partition.

      Attachments

        Issue Links

          Activity

            People

              xtern Pavel Pereslegin
              xtern Pavel Pereslegin
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h
                  1h