Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-5378

Filters for console command "transfer" and "browser" don't work as expected.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • AMQ 7.9.0.CR1
    • None
    • None
    • False
    • False
    • User Experience
    • undefined
    • Hide

      Perform operation via webconsole or perform action without the filter.

      Show
      Perform operation via webconsole or perform action without the filter.
    • Hide
      1. Create broker instance
      2. Create couple of queues (transfer::source and transfer::destination)
      3. Chose one of the queues and sent there few messages with some property:value (transfer:true)
      4. Send to the same queue few (3) messages with the same property but different value (transfer:false)
      5. Send to the same queue few (3) messages without this property
      6. Re-send few messages with the same property and original value (transfer:true)
      7. Re-send few messages with the same property but different value (transfer:false)
      8. Use following command:
        $ bin/artemis transfer --copy --source-queue transfer::source --source-filter transfer='true' --target-queue transfer::destination
        
      9. Check the total number of transfered messages - it won't correspond to the amount of messages with the property.
      10. Try to filter available messages with browse command with filter for the property
      Show
      Create broker instance Create couple of queues (transfer::source and transfer::destination) Chose one of the queues and sent there few messages with some property:value (transfer:true) Send to the same queue few (3) messages with the same property but different value (transfer:false) Send to the same queue few (3) messages without this property Re-send few messages with the same property and original value (transfer:true) Re-send few messages with the same property but different value (transfer:false) Use following command: $ bin/artemis transfer --copy --source-queue transfer::source --source-filter transfer='true' --target-queue transfer::destination Check the total number of transfered messages - it won't correspond to the amount of messages with the property. Try to filter available messages with browse command with filter for the property

    Description

      Filters for the property of messages don't work from the command line within browser and transfer commands. if filter option is removed or if actions are performed via webconsole (see attached screenshots) the exact same string used as filter does work.

      $ bin/artemis transfer --copy --source-queue transfer::source --source-filter transfer="true" --target-queue transfer::destination 
      Connection brokerURL = tcp://localhost:61616
      Transferred a total of 0 messages
      
      $ bin/artemis browser --destination transfer::source --filter transfer='true'
      Connection brokerURL = tcp://localhost:61616
      Consumer:: filter = transfer=true
      Consumer ActiveMQQueue[transfer::source], thread=0 trying to browse 1000 messages
      Consumer ActiveMQQueue[transfer::source], thread=0 browsed: 0 messages
      Consumer ActiveMQQueue[transfer::source], thread=0 Browser thread finished
      

      Attachments

        1. unfiltered.png
          unfiltered.png
          143 kB
        2. filtered.png
          filtered.png
          90 kB
        3. browsed.png
          browsed.png
          148 kB

        Activity

          People

            rhn-support-jbertram Justin Bertram
            rvais Roman Vais
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: