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

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

                Author: ASF GitHub Bot
            Created on: 01/Mar/24 15:47
            Start Date: 01/Mar/24 15:47
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4838:
URL: https://github.com/apache/activemq-artemis/pull/4838#discussion_r1509183207


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/connect/AMQPFederationQueuePolicyTest.java:
##########
@@ -2782,6 +2785,8 @@ public void 
testPullQueueConsumerBatchCreditTopUpAfterEachBacklogDrain() throws
                                     .now();
             }
 
+            Wait.assertTrue(() -> 
server.queueQuery(queueName).getMessageCount() == 
DEFAULT_PULL_CREDIT_BATCH_SIZE);

Review Comment:
   shouldn't it be >=?
   
   
   
   Also, I have been using timeouts on all the assertEquals and assertTrues I 
have been adding.
   
   
   I have been procrastinating removing the default method and always requiring 
a timeout set. as an eventual failure here would take 30seconds to happen.





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

    Worklog Id:     (was: 907807)
    Time Spent: 40m  (was: 0.5h)

> Fix intermittent failures in a few AMQP federation tests
> --------------------------------------------------------
>
>                 Key: ARTEMIS-4665
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4665
>             Project: ActiveMQ Artemis
>          Issue Type: Task
>          Components: AMQP
>    Affects Versions: 2.32.0
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Minor
>             Fix For: 2.33.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Add some additional state checks in the server to server test for AMQP 
> federation ensure an address send isn't discarded before the remote receiver 
> has attached which is causing some intermittent test failures, also add some 
> other state checks to ensure test prerequisites are in place.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to