Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3048

RabbitMQ queue cleanup uses wildcard unexpectedly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2 M1
    • Fix Version/s: 1.2 RC1
    • Component/s: REST
    • Labels:
      None

      Description

      Calling the API to delete queues uses a wildcard-like behaviour unexpectedly. If I request to delete:

      test-1

      I expect it to delete streams named with the pattern:

      test-1.*

      For example, it would delete:

      test-1.0, test-1.1, etc

      In fact I believe it wildcards before and after the period, e.g.:

      test-1*.*

      And hence would delete:

      test-1.0, test-11.0, test-123.0, etc

      That way of working is potentially helpful, but it's also dangerous because it removes the ability to know that you're only deleting the exact queue you want to in all cases.

      For the record the commit (https://github.com/spring-projects/spring-xd/commit/2d5f3f706330a6ead8e91c9a7a23d4372715614d) implies that it should work in the more restricted way above, not the less restricted way.

      (Note: I've marked this as an improvement because, absent documentation, I don't know what the correct functionality is and hence can't say this is a bug)

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            pharris Paul Harris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: