Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4479

HornetQ Last Value Queue Contains Duplicates When Wildfly is Restarted.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 8.1.0.Final, 9.0.0.Beta2
    • JMS
    • Hide

      To reproduce this follow the steps below:
      1. Make your queue as Last Value Queue by doing adding following attribute <last-value-queue>true</last-value-queue> </address-setting>
      2. Make sure your Queue is persistent.
      3. First push a value to the queue for example "XYZ". (Set the property "_HQ_LVQ_NAME" to "XYZ")
      4. Make sure that value is not processed by the consumer. Either by adding a delay or pausing the queue.
      5. Stop the wildfly server and restart it again.
      6. Push same value to the queue for example "XYZ".( Set the property "_HQ_LVQ_NAME" to "XYZ")
      7. Check the queue using JMX Console.
      8. You should find two entries containing "XYZ" as the value.

      But by definition it should only have the last value retained.
      Note: This happens only when server is restarted not when server is running at that time queue works fine.

      Show
      To reproduce this follow the steps below: 1. Make your queue as Last Value Queue by doing adding following attribute <last-value-queue>true</last-value-queue> </address-setting> 2. Make sure your Queue is persistent. 3. First push a value to the queue for example "XYZ". (Set the property "_HQ_LVQ_NAME" to "XYZ") 4. Make sure that value is not processed by the consumer. Either by adding a delay or pausing the queue. 5. Stop the wildfly server and restart it again. 6. Push same value to the queue for example "XYZ".( Set the property "_HQ_LVQ_NAME" to "XYZ") 7. Check the queue using JMX Console. 8. You should find two entries containing "XYZ" as the value. But by definition it should only have the last value retained. Note: This happens only when server is restarted not when server is running at that time queue works fine.

      HornetQ Last Value Queue Contains Duplicates When Wildfly is Restarted.

            jmesnil1@redhat.com Jeff Mesnil
            abhishek_parikh Abhishek Parikh (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: