[
https://issues.apache.org/jira/browse/IGNITE-18549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ilya Shishkov updated IGNITE-18549:
-----------------------------------
Description:
Currently, there are flaky timeouts in an {{#afterTest}} method of
{{CdcKafkaReplicationTest}}, {{CdcKafkaReplicationAppsTest}}.
Sometimes, tests stuck on waiting of topics deletion and thread dump is printed
into log:
{quote}
[2023-01-13T08:13:22,320][INFO
][after-test-timeout-org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest][]
org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest.{color:red}afterTest{color}()
timed out, dumping threads (afterTest() still keeps running)
{quote}
As we can see in thread dump, method awaits topic deletion at line #92 of
{{CdcKafkaReplicationTest.java}} [1]:
{quote}
[08:13:22] : [Step 3/3] Thread [name="main", id=1, state=TIMED_WAITING,
blockCnt=460, waitCnt=3547]
[08:13:22] : [Step 3/3] at java.lang.Thread.sleep(Native Method)
[08:13:22] : [Step 3/3] at
o.a.i.i.util.IgniteUtils.sleep(IgniteUtils.java:8266)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2055)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2023)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2004)
[08:13:22] : [Step 3/3] {color:red}at
o.a.i.cdc.kafka.CdcKafkaReplicationTest.afterTest(CdcKafkaReplicationTest.java:92){color}
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.GridAbstractTest.runAfterTest(GridAbstractTest.java:762)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.GridAbstractTest.cleanUpTestEnviroment(GridAbstractTest.java:739)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.GridAbstractTest.runTest(GridAbstractTest.java:2555)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.GridAbstractTest.access$600(GridAbstractTest.java:194)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.GridAbstractTest$1.evaluate(GridAbstractTest.java:237)
[08:13:22] : [Step 3/3] at
org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.SystemPropertiesRule.lambda$methodStatement$1(SystemPropertiesRule.java:110)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.SystemPropertiesRule$$Lambda$56/739582925.evaluate(Unknown
Source)
[08:13:22] : [Step 3/3] at
o.a.i.testframework.junits.DelegatingJUnitStatement.evaluate(DelegatingJUnitStatement.java:49)
{quote}
Reason should be investigated and fixed.
Links:
#
https://github.com/apache/ignite-extensions/blob/master/modules/cdc-ext/src/test/java/org/apache/ignite/cdc/kafka/CdcKafkaReplicationTest.java#L92
was:
Currently, there are flaky timeouts in
[08:13:22] : [Step 3/3] [2023-01-13T08:13:22,320][INFO
][after-test-timeout-org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest][]
org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest.afterTest() timed out,
dumping threads (afterTest() still keeps running)
{code}
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:621)
at
org.apache.ignite.cdc.AbstractReplicationTest.checkMetrics(AbstractReplicationTest.java:589)
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)
at java.lang.Thread.run(Thread.java:750)
{code}
Reason should be investigated and fixed.
Fails:
# [clientType=CLIENT_NODE, atomicity=ATOMIC, mode=REPLICATED, backupCnt=0]:
[TC2 Build #342 at 12 Jan
11:09|https://ci2.ignite.apache.org/buildConfiguration/IgniteExtensions_Tests_Cdc/6995624?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildTestsSection=true],
build log: [^_TESTS_CDC_342.log.zip]
# [clientType=THIN_CLIENT, atomicity=TRANSACTIONAL, mode=REPLICATED,
backupCnt=0]:
[TC1 Build #410 at 11 Jan
08:00|https://ci.ignite.apache.org/buildConfiguration/IgniteExtensions_Tests_Cdc/7000973?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildTestsSection=true],
build log: [^_TESTS_CDC_410.log.zip]
# [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|https://ci.ignite.apache.org/buildConfiguration/IgniteExtensions_Tests_Cdc/6996965?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildTestsSection=true],
build log: [^_TESTS_CDC_405.log.zip]
# [clientType=THIN_CLIENT, atomicity=ATOMIC, mode=PARTITIONED, backupCnt=1]:
[TC1 Build #402 at 31 Dec 22
08:02|https://ci.ignite.apache.org/buildConfiguration/IgniteExtensions_Tests_Cdc/6986312?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildTestsSection=true],
build log: [^_TESTS_CDC_402.log.zip]
> Fix timeouts of CdcKafkaReplicationTest#afterTest
> -------------------------------------------------
>
> Key: IGNITE-18549
> URL: https://issues.apache.org/jira/browse/IGNITE-18549
> Project: Ignite
> Issue Type: Test
> Components: extensions
> Reporter: Ilya Shishkov
> Priority: Minor
> Labels: IEP-59, ise
>
> Currently, there are flaky timeouts in an {{#afterTest}} method of
> {{CdcKafkaReplicationTest}}, {{CdcKafkaReplicationAppsTest}}.
> Sometimes, tests stuck on waiting of topics deletion and thread dump is
> printed into log:
> {quote}
> [2023-01-13T08:13:22,320][INFO
> ][after-test-timeout-org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest][]
> org.apache.ignite.cdc.kafka.CdcKafkaReplicationTest.{color:red}afterTest{color}()
> timed out, dumping threads (afterTest() still keeps running)
> {quote}
> As we can see in thread dump, method awaits topic deletion at line #92 of
> {{CdcKafkaReplicationTest.java}} [1]:
> {quote}
> [08:13:22] : [Step 3/3] Thread [name="main", id=1, state=TIMED_WAITING,
> blockCnt=460, waitCnt=3547]
> [08:13:22] : [Step 3/3] at java.lang.Thread.sleep(Native Method)
> [08:13:22] : [Step 3/3] at
> o.a.i.i.util.IgniteUtils.sleep(IgniteUtils.java:8266)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2055)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2023)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:2004)
> [08:13:22] : [Step 3/3] {color:red}at
> o.a.i.cdc.kafka.CdcKafkaReplicationTest.afterTest(CdcKafkaReplicationTest.java:92){color}
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.GridAbstractTest.runAfterTest(GridAbstractTest.java:762)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.GridAbstractTest.cleanUpTestEnviroment(GridAbstractTest.java:739)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.GridAbstractTest.runTest(GridAbstractTest.java:2555)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.GridAbstractTest.access$600(GridAbstractTest.java:194)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.GridAbstractTest$1.evaluate(GridAbstractTest.java:237)
> [08:13:22] : [Step 3/3] at
> org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.SystemPropertiesRule.lambda$methodStatement$1(SystemPropertiesRule.java:110)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.SystemPropertiesRule$$Lambda$56/739582925.evaluate(Unknown
> Source)
> [08:13:22] : [Step 3/3] at
> o.a.i.testframework.junits.DelegatingJUnitStatement.evaluate(DelegatingJUnitStatement.java:49)
> {quote}
> Reason should be investigated and fixed.
> Links:
> #
> https://github.com/apache/ignite-extensions/blob/master/modules/cdc-ext/src/test/java/org/apache/ignite/cdc/kafka/CdcKafkaReplicationTest.java#L92
--
This message was sent by Atlassian Jira
(v8.20.10#820010)