You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Swen Moczarski (JIRA)" <ji...@apache.org> on 2011/01/16 23:03:43 UTC

[jira] Created: (AMQ-3141) Messages may be lost when schedule them with a short delay

Messages may be lost when schedule them with a short delay
----------------------------------------------------------

                 Key: AMQ-3141
                 URL: https://issues.apache.org/jira/browse/AMQ-3141
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.4.2
            Reporter: Swen Moczarski
            Priority: Minor


The message scheduler has an optimization, that the schedule time will be aligned to seconds. All messages which included in the same second will be maintained in one store entry with a list of jobs. 
The list will be read from the store during the main loop, the entries will be executed and the list will be deleted from the store. When new messages are added on the same list during the scheduling, these messages could be lost.
One possible fix could be, that the main loop reads and removes the lists in one atomic step due to a synchronization. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQ-3141) Messages may be lost when schedule them with a short delay

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reassigned AMQ-3141:
---------------------------------

    Assignee: Timothy Bish

> Messages may be lost when schedule them with a short delay
> ----------------------------------------------------------
>
>                 Key: AMQ-3141
>                 URL: https://issues.apache.org/jira/browse/AMQ-3141
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>            Reporter: Swen Moczarski
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.5.0
>
>         Attachments: AMQ3141.patch, AMQ3141Test.patch
>
>
> The message scheduler has an optimization, that the schedule time will be aligned to seconds. All messages which included in the same second will be maintained in one store entry with a list of jobs. 
> The list will be read from the store during the main loop, the entries will be executed and the list will be deleted from the store. When new messages are added on the same list during the scheduling, these messages could be lost.
> One possible fix could be, that the main loop reads and removes the lists in one atomic step due to a synchronization. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (AMQ-3141) Messages may be lost when schedule them with a short delay

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3141.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.5.0

Patch applied, thanks!

> Messages may be lost when schedule them with a short delay
> ----------------------------------------------------------
>
>                 Key: AMQ-3141
>                 URL: https://issues.apache.org/jira/browse/AMQ-3141
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>            Reporter: Swen Moczarski
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.5.0
>
>         Attachments: AMQ3141.patch, AMQ3141Test.patch
>
>
> The message scheduler has an optimization, that the schedule time will be aligned to seconds. All messages which included in the same second will be maintained in one store entry with a list of jobs. 
> The list will be read from the store during the main loop, the entries will be executed and the list will be deleted from the store. When new messages are added on the same list during the scheduling, these messages could be lost.
> One possible fix could be, that the main loop reads and removes the lists in one atomic step due to a synchronization. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (AMQ-3141) Messages may be lost when schedule them with a short delay

Posted by "Swen Moczarski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Swen Moczarski updated AMQ-3141:
--------------------------------

    Attachment: AMQ3141.patch
                AMQ3141Test.patch

Test and patch attached.

> Messages may be lost when schedule them with a short delay
> ----------------------------------------------------------
>
>                 Key: AMQ-3141
>                 URL: https://issues.apache.org/jira/browse/AMQ-3141
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>            Reporter: Swen Moczarski
>            Priority: Minor
>         Attachments: AMQ3141.patch, AMQ3141Test.patch
>
>
> The message scheduler has an optimization, that the schedule time will be aligned to seconds. All messages which included in the same second will be maintained in one store entry with a list of jobs. 
> The list will be read from the store during the main loop, the entries will be executed and the list will be deleted from the store. When new messages are added on the same list during the scheduling, these messages could be lost.
> One possible fix could be, that the main loop reads and removes the lists in one atomic step due to a synchronization. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.