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

qpid-config deletes queue which contains messages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.18
    • Fix Version/s: 0.21
    • Component/s: C++ Tools
    • Labels:
      None

      Description

      qpid-config tool deletes a queue even if it contains some messages. The "force" command line options are not honored.

      1. jira-4599.patch
        4 kB
        Ernest Allen

        Activity

        Hide
        eallen Ernest Allen added a comment -

        Does the if_empty and if_unused tests in the python code before the call to delete the queue is made.

        Show
        eallen Ernest Allen added a comment - Does the if_empty and if_unused tests in the python code before the call to delete the queue is made.
        Hide
        tedross Ted Ross added a comment -

        For the upstream development, it would be better to not implement a temporary fix but to provide the broker-side updates to do the proper pre-delete checks on the queue.

        Show
        tedross Ted Ross added a comment - For the upstream development, it would be better to not implement a temporary fix but to provide the broker-side updates to do the proper pre-delete checks on the queue.
        Hide
        gsim Gordon Sim added a comment -

        I agree with Ted, this should be fixed by adding the preconditions to the delete method.

        Show
        gsim Gordon Sim added a comment - I agree with Ted, this should be fixed by adding the preconditions to the delete method.
        Hide
        eallen Ernest Allen added a comment - - edited

        The jira-4599.patch contains the changes to the C++ broker as well as the qpid-config python utility to support the if_empty and if_unused flags.
        It does not contain the temporary workaround in qpid-config that checks for the flags and raises the exception in the python code.

        Show
        eallen Ernest Allen added a comment - - edited The jira-4599.patch contains the changes to the C++ broker as well as the qpid-config python utility to support the if_empty and if_unused flags. It does not contain the temporary workaround in qpid-config that checks for the flags and raises the exception in the python code.

          People

          • Assignee:
            tedross Ted Ross
            Reporter:
            eallen Ernest Allen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development