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

Fix CdcIgniteToIgniteReplicationTest#testActivePassiveReplication flakiness

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • extensions

    Description

      A CdcIgniteToIgniteReplicationTest#testActivePassiveReplication test is flaky. Sometimes it fails with reason as below (actual for 27/Jun/2023):

        java.lang.AssertionError
          at org.junit.Assert.fail(Assert.java:86)
          at org.junit.Assert.assertTrue(Assert.java:41)
          at org.junit.Assert.assertTrue(Assert.java:52)
          at org.apache.ignite.testframework.junits.JUnitAssertAware.assertTrue(JUnitAssertAware.java:35)
          at org.apache.ignite.cdc.AbstractReplicationTest.checkMetrics(AbstractReplicationTest.java:627)
          at org.apache.ignite.cdc.AbstractReplicationTest.checkMetrics(AbstractReplicationTest.java:595)
          at org.apache.ignite.cdc.AbstractReplicationTest.testActivePassiveReplication(AbstractReplicationTest.java:283)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
          at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
          at org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2504)
      

      Reason should be investigated and fixed.

      Fails of the CdcIgniteToIgniteReplicationTest#testActivePassiveReplication can occur with different test parameters:

      1. [clientType=CLIENT_NODE, atomicity=ATOMIC, mode=REPLICATED, backupCnt=0]:
        TC2 Build #342 at 12 Jan 11:09, build log: _TESTS_CDC_342.log.zip
      2. [clientType=THIN_CLIENT, atomicity=TRANSACTIONAL, mode=REPLICATED, backupCnt=0]:
        TC1 Build #410 at 11 Jan 08:00, build log: _TESTS_CDC_410.log.zip
      3. [clientType=THIN_CLIENT, atomicity=ATOMIC, mode=REPLICATED, backupCnt=0],
        [clientType=THIN_CLIENT, atomicity=TRANSACTIONAL, mode=PARTITIONED, backupCnt=1]:
        TC1 Build #405 at 9 Jan 11:55, build log: _TESTS_CDC_405.log.zip
      4. [clientType=THIN_CLIENT, atomicity=ATOMIC, mode=PARTITIONED, backupCnt=1]:
        TC1 Build #402 at 31 Dec 22 08:02, build log: _TESTS_CDC_402.log.zip

      Attachments

        1. _TESTS_CDC_342.log.zip
          8.86 MB
          Ilya Shishkov
        2. _TESTS_CDC_402.log.zip
          9.07 MB
          Ilya Shishkov
        3. _TESTS_CDC_405.log.zip
          8.77 MB
          Ilya Shishkov
        4. _TESTS_CDC_410.log.zip
          8.52 MB
          Ilya Shishkov

        Issue Links

          Activity

            People

              shishkovilja Ilya Shishkov
              shishkovilja Ilya Shishkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: