[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-926) Negative message count

Sergey Koshcheyev (JIRA) jira-events at lists.jboss.org
Tue Apr 24 08:57:30 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBMESSAGING-926?page=all ]

Sergey Koshcheyev updated JBMESSAGING-926:
------------------------------------------

    Attachment: ChannelSupport.patch

I'm attaching a proposed fix. This breaks QueueManagementTest.testRemoveAllMessages though - during that test the message count goes to -1. The counter is decremented while removing the messages but the counter has never been incremented before.

These are the lines in testRemoveAllMessages where the failure occurs:
         // Test MessageCount again, should be 0 msg
         Integer count = (Integer)ServerManagement.getAttribute(destObjectName, "MessageCount");
         assertEquals(0, count.intValue());

count.intValue() returns -1 here.

> Negative message count
> ----------------------
>
>                 Key: JBMESSAGING-926
>                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-926
>             Project: JBoss Messaging
>          Issue Type: Bug
>    Affects Versions: 1.2.0.GA
>         Environment: any
>            Reporter: Kurt Stam
>         Assigned To: Sergey Koshcheyev
>             Fix For: 1.2.0.SP2
>
>         Attachments: ChannelSupport.patch, screenshot-1.jpg
>
>
> When I removeAllMessages from the Queue while the thing is working on the queue, I can get a negative message count (see screenshot) I thought this was a funny bug :).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list