Qpid
  1. Qpid
  2. QPID-4559

qpid-config deletes queue which contains messages

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.18
    • Fix Version/s: 0.21
    • Component/s: Python 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
        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
        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.
        Hide
        Gordon Sim added a comment -

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

        Show
        Gordon Sim added a comment - I agree with Ted, this should be fixed by adding the preconditions to the delete method.
        Hide
        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
        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
        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
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development