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

IgniteCachePartitionLossPolicySelfTest is flaky on TC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.5
    • cache

    Description

      Affected tests:
      testReadOnlyAll
      testReadWriteSafe

      Exception:

      junit.framework.AssertionFailedError: Failed to find expected lost partition [exp=0, lost=[]]
          at org.apache.ignite.internal.processors.cache.distributed.IgniteCachePartitionLossPolicySelfTest.verifyCacheOps(IgniteCachePartitionLossPolicySelfTest.java:219)
          at org.apache.ignite.internal.processors.cache.distributed.IgniteCachePartitionLossPolicySelfTest.checkLostPartition(IgniteCachePartitionLossPolicySelfTest.java:166)
          at org.apache.ignite.internal.processors.cache.distributed.IgniteCachePartitionLossPolicySelfTest.testReadWriteSafe(IgniteCachePartitionLossPolicySelfTest.java:114)
      

      The problem of failure:
      After we prepare topology and shutdown the node containing lost partition we start to check it immediately on all nodes (cache.lostPartitions() method). Sometimes we invoke this method on client node where last PME is not even started and getting empty list of lost partitions because we haven't received it yet on PME.

      Possible solution:
      Wait for PME finishing on all nodes (including client) before start to check for lost partitions.

      Attachments

        Issue Links

          Activity

            People

              agoncharuk Alexey Goncharuk
              jokser Pavel Kovalenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: