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

Andrew Stitcher updated QPID-6213:
----------------------------------
    Attachment: 0001-QPID-6213-Fix-misuse-of-Timer-in-queue-cleaning-code.patch

 don't think my fix would schedule the next purge whilst one was currently 
happening unless the purge took long enough that it was longer than the between 
cleaning interval.

Is it really the case that purging the queues can take longer than the 10 
minutes between purges?

I attach a slightly better behaved change, which will continuously push of the 
next queue cleaner trigger as the purges are happening - in this case a single 
purge would have to take longer than the cleaner interval.

Note that .restart() has the effect of pushing off any timer firing by the 
timer interval *from now* so if you continually call restart then the timer 
will never fire. This is how heartbeat processing in the broker works - by 
continually pushing off the processing of the heatbeat timeout.


> qpidd misses heartbeats
> -----------------------
>
>                 Key: QPID-6213
>                 URL: https://issues.apache.org/jira/browse/QPID-6213
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.30
>            Reporter: Gordon Sim
>            Assignee: Gordon Sim
>             Fix For: 0.31
>
>         Attachments: 
> 0001-QPID-6213-Fix-misuse-of-Timer-in-queue-cleaning-code.patch, 
> QPID-6213_suggested_further_fix.patch, QPID-6213_suggested_further_fix.patch, 
> qpid-6213-svn-01.patch, qpidd.log.gz
>
>
> Caused by https://issues.apache.org/jira/browse/QPID-5758. Reproducer from 
> Pavel Moravec: create many heartbeat enabled connections and queues (e.g. 500 
> idle receivers, each with their own queue) and have the purge interval 
> relatively short (to speed up reproducing).
> The broker misses heartbeats and connections get timed out.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to