Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7232

Sending too big message into paged queue blocks the broker from starting again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • qpid-cpp-0.34
    • None
    • C++ Broker
    • None

    Description

      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

      qpid-config -a localhost:32770 add queue testQueue --argument=qpid.paging=true --argument=qpid.page_factor=1 --argument=qpid.max_pages_loaded=1 --durable

      3. Send a message bigger than the page size into the queue

      qpid-config -a localhost:32770 add queue testQueue --argument=qpid.paging=true --argument=qpid.page_factor=1 --argument=qpid.max_pages_loaded=1 --durable

      This fails as expected with following error:

      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]

      4. Stop the broker
      5. Start the broker - it doesn't start with following error:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scholzj Jakub Scholz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: