gurpartap3697 opened a new pull request, #1872: URL: https://github.com/apache/activemq/pull/1872
### Description: This PR addresses intermittent test failures in AMQ6133PersistJMSRedeliveryTest caused by a `java.lang.reflect.UndeclaredThrowableException` ``` Error: Errors: Error: AMQ6133PersistJMSRedeliveryTest.testPersistJMSRedeliveredMessageLossOnIndexRebuild:92 ยป UndeclaredThrowable ``` ref: https://github.com/apache/activemq/actions/runs/23891160188/job/69665187032 The test was attempting to assert the queue size via JMX immediately after restarting the broker. Because the JMX MBean for the destination is registered asynchronously, the test queried the broker before the MBean was available, causing the `InstanceNotFoundException`. Added `Wait.waitFor` to poll the JMX proxy. The condition includes a `try-catch` block that suppresses `InstanceNotFoundException`, allowing the test to wait until the MBean is successfully registered and the queue size matches the expected value. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
