-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.10
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Tests
-
Tags:
-
Team:PLATFORM
If a test is failing because of an Exception, the CoreFeature.afterTearDown is invoked before reporting the failure, if one of the TransactionalFeature waiter times out systematically the error is reported at the end of the test suite. The waiter timeout is 3min but it is applied 4 times per test, when the failure is in a test suite the error might be reported after hours.
2019-11-22 11:51:16,154 [main] WARN [TransactionalFeature] timed out in class org.nuxeo.ecm.core.bulk.CoreBulkFeature$$Lambda$96/0x0000000840164440, thread dump available in target/tdump-2050750397549758604.log 2019-11-22 11:54:16,200 [pool-2-thread-2] WARN [TransactionalFeature] timed out in class org.nuxeo.ecm.core.bulk.CoreBulkFeature$$Lambda$96/0x0000000840164440, thread dump available in target/tdump-7786157038436791553.log 2019-11-22 11:57:16,288 [pool-2-thread-2] WARN [TransactionalFeature] timed out in class org.nuxeo.ecm.core.bulk.CoreBulkFeature$$Lambda$96/0x0000000840164440, thread dump available in target/tdump-16307344853669672812.log 2019-11-22 12:00:16,555 [pool-2-thread-2] WARN [TransactionalFeature] timed out in class org.nuxeo.ecm.core.bulk.CoreBulkFeature$$Lambda$96/0x0000000840164440, thread dump available in target/tdump-8809063741821430568.log java.lang.IllegalArgumentException: The appender for Log command exists and expecting codec: org.nuxeo.lib.stream.codec.NoCodec@581b1c08, cannot use a different codec: org.nuxeo.lib.stream.codec.AvroMessageCodec@a9e8da1 at org.nuxeo.lib.stream.log.internals.AbstractLogManager.getAppender(AbstractLogManager.java:156) at org.nuxeo.ecm.core.bulk.BulkServiceImpl.submit(BulkServiceImpl.java:139) .... 2019-11-22 12:03:16,810 [main] WARN [TransactionalFeature] timed out in class org.nuxeo.ecm.core.bulk.CoreBulkFeature$$Lambda$96/0x0000000840164440, thread dump available in target/tdump-14579663148991600926.log Process finished with exit code 255
The transactional waiter times out after 3min, they are called 5 times after the test execution:
- 1 time in CoreFeature.afterTeardown > waitForAsyncCompletion
- 3 times in CoreFeature.afterTeardown > cleanupSession > waitForAsyncCompletion
- 1 time in CoreFeature.afterRun > waitForAsyncCompletion