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 2015/10/29 11:29:27 UTC

[jira] [Commented] (ARTEMIS-287) [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines

    [ https://issues.apache.org/jira/browse/ARTEMIS-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14980219#comment-14980219 ] 

ASF GitHub Bot commented on ARTEMIS-287:
----------------------------------------

GitHub user dudaerich opened a pull request:

    https://github.com/apache/activemq-artemis/pull/222

    ARTEMIS-287 PagingTest#testDeleteQueueRestart fails on slower machines

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dudaerich/activemq-artemis ARTEMIS-287

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/222.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #222
    
----
commit 0007772b135d398f15a2e49dcf6e47af2c19a0aa
Author: Erich Duda <ed...@redhat.com>
Date:   2015-10-29T10:27:26Z

    ARTEMIS-287 [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines

----


> [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
>
> {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)