You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jakub Scholz (JIRA)" <ji...@apache.org> on 2016/04/28 10:52:12 UTC

[jira] [Created] (QPID-7232) Sending too big message into paged queue blocks the broker from starting again

Jakub Scholz created QPID-7232:
----------------------------------

             Summary: Sending too big message into paged queue blocks the broker from starting again
                 Key: QPID-7232
                 URL: https://issues.apache.org/jira/browse/QPID-7232
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: qpid-cpp-0.34
            Reporter: Jakub Scholz


When user attempts to send a message into paged queue which is bigger than the page size, it receives an error message that the message is too big and the message doesn't seem to be enqueued in the queue. So far is all ok. But when you stop the broker and try to start it again, the broker fails to start because it seems to have the too big message still in its queue.

Steps to reproduce:
1. Start the broker (with linearstore)
2. Create durable paged queue with small page factor
{code}qpid-config -a localhost:32770 add queue testQueue --argument=qpid.paging=true --argument=qpid.page_factor=1 --argument=qpid.max_pages_loaded=1 --durable{code}
3. Send a message bigger than the page size into the queue
{code}qpid-config -a localhost:32770 add queue testQueue --argument=qpid.paging=true --argument=qpid.page_factor=1 --argument=qpid.max_pages_loaded=1 --durable{code}
This fails as expected with following error:
{code}2016-04-28 10:29:58 [Client] warning Exception received from broker: precondition-failed: Message is larger than page size for queue testQueue (/root/rpmbuild/BUILD/qpid-cpp-0.36/src/qpid/broker/PagedQueue.cpp:137) [caused by 2 \x00:\x00]{code}
4. Stop the broker
5. Start the broker - it doesn't start with following error:
{code}
2016-04-28 08:30:03 [Store] notice Linear Store: Store module initialized; store-dir=/var/lib/qpidd/.qpidd
2016-04-28 08:30:03 [Broker] error Message is larger than page size for queue testQueue
2016-04-28 08:30:03 [Broker] critical Broker (pid=41) start-up failed: precondition-failed: Message is larger than page size for queue testQueue (/root/rpmbuild/BUILD/qpid-cpp-0.36/src/qpid/broker/PagedQueue.cpp:137)
2016-04-28 08:30:03 [Broker] notice Broker (pid=41) shut-down
2016-04-28 08:30:03 [Broker] critical Unexpected error: precondition-failed: Message is larger than page size for queue testQueue (/root/rpmbuild/BUILD/qpid-cpp-0.36/src/qpid/broker/PagedQueue.cpp:137)
{code}



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

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