Pavel Moravec created QPID-6148:
-----------------------------------
Summary: purging TTL expired messages via purge task should not
increase acquires counters
Key: QPID-6148
URL: https://issues.apache.org/jira/browse/QPID-6148
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: 0.30
Reporter: Pavel Moravec
Assignee: Pavel Moravec
Priority: Trivial
Description of problem:
When purging messages via purge task (that runs every 10 minutes), for every
purged message this way, "acquires" counter per queue and per broker is
increased.
That does not make much sense, as technically the message is not acquired.
Moreover purging the same message in the second way (removing it when finding
what message to send/acquire to some consumer) does not increase the counter.
How reproducible:
100%
Steps to Reproduce:
# echo "queue-purge-interval=10" >> /etc/qpid/qpidd.conf
# service qpidd restart
# qpid-send -a "q; {create:always}" -m1000 --ttl=1000
# sleep 10
# qpid-stat -q q | egrep '(acquires|ttl-expired)'; qpid-stat -g | egrep
'(acquires|ttl-expired)'
Actual results:
acquires 1000
discards-ttl-expired 1000
acquires 1008
discards-ttl-expired 1000
(the 2nd acquires - brokerwide - should be >1000 due to the qpid-tool acquiring
some messages)
Expected results:
acquires 0
discards-ttl-expired 1000
acquires 8
discards-ttl-expired 1000
(the 2nd acquires - brokerwide - shoudl be >0 due to qpid-tool acquiring some
messages, but surely <1000)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]