activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clebert suconic (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ARTEMIS-287) [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines
Date Thu, 03 Nov 2016 20:41:05 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

clebert suconic closed ARTEMIS-287.
-----------------------------------

> [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines
> ------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-287
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-287
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Erich Duda
>             Fix For: 1.2.0
>
>
> {code}
> long timeout = System.currentTimeMillis() + 5000;
> // I want the buffer full to make sure there are pending messages on the server's side
> while (System.currentTimeMillis() < timeout && cons.getBufferSize() < 1000
&& cons2.getBufferSize() < 1000) {
>     System.out.println("cons1 buffer = " + cons.getBufferSize() + ", cons2 buffer = "
+ cons2.getBufferSize());
>     Thread.sleep(100);
> }
> {code}
> On slower machines the 5 seconds timeout is too short.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message