You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/27 08:28:00 UTC

[jira] [Work logged] (ARTEMIS-3654) AllClassesTest can create and fail to close a LibaioContext instance

     [ https://issues.apache.org/jira/browse/ARTEMIS-3654?focusedWorklogId=716261&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-716261 ]

ASF GitHub Bot logged work on ARTEMIS-3654:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jan/22 08:27
            Start Date: 27/Jan/22 08:27
    Worklog Time Spent: 10m 
      Work Description: brusdev merged pull request #3925:
URL: https://github.com/apache/activemq-artemis/pull/3925


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 716261)
    Remaining Estimate: 0h
            Time Spent: 10m

> AllClassesTest can create and fail to close a LibaioContext instance
> --------------------------------------------------------------------
>
>                 Key: ARTEMIS-3654
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3654
>             Project: ActiveMQ Artemis
>          Issue Type: Test
>          Components: Tests
>    Affects Versions: 2.20.0
>            Reporter: Robbie Gemmell
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> AllClassesTest tries to create objects with random args as part of its check. It never closes these.
> A cascading test failure was noticed due to the static TotalMaxIO check done before/after ActiveMQTestBase based tests to check for AIO context leaks. As AllClassesTest was the only test to run in the JVM before this happened, it essentially had to be the cause.
> The behaviour would fit with it generally failing to create the LibaioContext instance due to its internal checks, but succeeding this one time, then not closing it.
> {noformat}
>  [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.activemq.artemis.tests.unit.AllClassesTest
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> Warning:  Tests run: 1362, Failures: 0, Errors: 0, Skipped: 280, Time elapsed: 3.551 s - in org.apache.activemq.artemis.tests.unit.AllClassesTest
> [INFO] Running org.apache.activemq.artemis.tests.unit.core.asyncio.MultiThreadAsynchronousFileTest
> [main] 11:27:22,623 ERROR [org.apache.activemq.artemis.tests.util.ActiveMQTestBase] LibaioContext TotalMaxIO > 0 before beginning test class. Issue presumably arose in a preceding class (not possible to be sure of which here). TotalMaxIO = 39416
> [main] 11:27:52,682 ERROR [org.apache.activemq.artemis.tests.util.ActiveMQTestBase] LibaioContext TotalMaxIO > 0 leak detected after class not-yet-set(), TotalMaxIO=39416(). Check output to determine if occurred before/during.
> Error:  Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 30.022 s <<< FAILURE! - in org.apache.activemq.artemis.tests.unit.core.asyncio.MultiThreadAsynchronousFileTest
> Error:  org.apache.activemq.artemis.tests.unit.core.asyncio.MultiThreadAsynchronousFileTest  Time elapsed: 30.022 s  <<< ERROR!
> org.junit.TestCouldNotBeSkippedException: Test could not be skipped due to other failures
> 	at org.apache.activemq.artemis.tests.unit.core.asyncio.MultiThreadAsynchronousFileTest.hasAIO(MultiThreadAsynchronousFileTest.java:52)
> Error:  org.apache.activemq.artemis.tests.unit.core.asyncio.MultiThreadAsynchronousFileTest  Time elapsed: 30.022 s  <<< FAILURE!
> java.lang.AssertionError: LibaioContext TotalMaxIO > 0 leak detected after class not-yet-set(), TotalMaxIO=39416(). Check output to determine if occurred before/during.
> [INFO] Running org.apache.activemq.artemis.tests.unit.core.client.impl.LargeMessageBufferTest
> Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.011 s <<< FAILURE! - in org.apache.activemq.artemis.tests.unit.core.client.impl.LargeMessageBufferTest
> Error:  org.apache.activemq.artemis.tests.unit.core.client.impl.LargeMessageBufferTest  Time elapsed: 0.011 s  <<< FAILURE!
> java.lang.AssertionError: Aborting, LibaioContext TotalMaxIO > 0 issue previously detected by test class not-yet-set(), see its output.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)