Reputation: 181
Following is the Queue Definition I have in my standalone.xml. Queue which I am having is persistent.
<jms-queue name="CEComputeQueue">
<entry name="queue/CEComputeQueue"/>
<entry name="java:jboss/exported/jms/queue/CEComputeQueue"/>
</jms-queue>
With following Address Settings.
<address-setting match="jms.queue.CEComputeQueue">
<last-value-queue>true</last-value-queue> </address-setting>
While pushing to queue HornetQ is not retaining multiple last values as you can see the output which I have taken from the JMX Console where "_HQ_LVQ_NAME (51)" is repeated.
To reproduce this follow the steps below:
1. First I pushed a value to the queue (51) and it is not yet processed and I stop the Wildfly Server.
2. I restarted Server.
3. I pushed another value to the queue (51).
Note: Although the queue is LAST Value Queue , it still has multiple same entries shown below.
RESOLUTION ?
** How can I get it resolved, is it a Bug of HornetQ or Behaviour and what is the possible solution to the problem.**
[standalone@localhost:9990 /] /subsystem=messaging/hornetq-server=default/jms-queue=CEComputeQueue:list-messages
{
"outcome" => "success",
"result" => [
{
"JMSMessageID" => "ID:b620436a-ce84-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360041009L,
"_HQ_LVQ_NAME" => "51",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "60fe5c1a-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426803011453L
},
{
"JMSMessageID" => "ID:c7a3aaee-ce8d-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360041166L,
"_HQ_LVQ_NAME" => "49",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "6112f59e-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426806906306L
},
{
"JMSMessageID" => "ID:4c4952f8-ce95-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360041269L,
"_HQ_LVQ_NAME" => "51",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "60fe5c1a-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426810135328L
},
{
"JMSMessageID" => "ID:2a4048fd-cea1-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360041517L,
"_HQ_LVQ_NAME" => "51",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "61105d84-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426815232187L
},
{
"JMSMessageID" => "ID:cdc0d5f8-cea5-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360041946L,
"_HQ_LVQ_NAME" => "49",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "60fe5c1a-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426817224485L
},
{
"JMSMessageID" => "ID:0e169a9e-cea7-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360042115L,
"_HQ_LVQ_NAME" => "50",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "6112f59e-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426817761918L
},
{
"JMSMessageID" => "ID:185fd030-cea7-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360042124L,
"_HQ_LVQ_NAME" => "16",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "60fe5c1a-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426817779175L
},
{
"JMSMessageID" => "ID:4c614265-cea7-11e4-a3d7-f9d18c2c2348",
"JMSExpiration" => 0,
"messageID" => 34360042157L,
"_HQ_LVQ_NAME" => "51",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "6112f59e-ce52-11e4-a3d7-f9d18c2c2348",
"JMSPriority" => 4,
"JMSTimestamp" => 1426817866426L
},
{
"JMSMessageID" => "ID:5b14c783-cead-11e4-92c2-e36be9318636",
"JMSExpiration" => 0,
"messageID" => 36507524460L,
"_HQ_LVQ_NAME" => "49",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "a3519e4e-cea8-11e4-92c2-e36be9318636",
"JMSPriority" => 4,
"JMSTimestamp" => 1426820468071L
},
{
"JMSMessageID" => "ID:5e94c684-cead-11e4-92c2-e36be9318636",
"JMSExpiration" => 0,
"messageID" => 36507524462L,
"_HQ_LVQ_NAME" => "51",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "a3519e4e-cea8-11e4-92c2-e36be9318636",
"JMSPriority" => 4,
"JMSTimestamp" => 1426820473943L
},
{
"JMSMessageID" => "ID:a5bed858-cea9-11e4-92c2-e36be9318636",
"JMSExpiration" => 0,
"messageID" => 36507523986L,
"_HQ_LVQ_NAME" => "50",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "a3519e4e-cea8-11e4-92c2-e36be9318636",
"JMSPriority" => 4,
"JMSTimestamp" => 1426818875350L
},
{
"JMSMessageID" => "ID:20a629be-ceaa-11e4-92c2-e36be9318636",
"JMSExpiration" => 0,
"messageID" => 36507524057L,
"_HQ_LVQ_NAME" => "16",
"address" => "jms.queue.CEComputeQueue",
"JMSDeliveryMode" => "PERSISTENT",
"__HQ_CID" => "a3519e4e-cea8-11e4-92c2-e36be9318636",
"JMSPriority" => 4,
"JMSTimestamp" => 1426819081548L
}
]
}
Upvotes: 0
Views: 314
Reputation: 181
This is a bug , raised it in Wildfy Jira. Here is the link. https://issues.jboss.org/browse/WFLY-4479
Upvotes: 1