Although the behavior appears incorrect I think it is, in fact, correct. This is because every node in the cluster maintains its own independent queues and therefore the last-value on each node will be different. Furthermore, when messages are redistributed then the last-value can change because even though the redistributed messages may have been sent before the messages already in the queue the redistribution process will cause the last-value to be reassessed.
Due to this I would recommend against using last-value queues in a cluster. Justin On Thu, Dec 12, 2019 at 2:58 PM ldebello <[email protected]> wrote: > Hi, > > I have two Artemis broker (2.9.0) running creating a cluster using UDP, and > I hit and issue using LVQ in this way. It general works ok but in some > situations it does not. > > Use Cases: > > > 1) Working as Expected > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=985, > Queue=State) > Sending Message to Broker in port 5674: Message(LVQ_ID="Some", Content=940, > Queue=State) > > Consume Message to Broker in port 5672: Got 940 > > 2) Working as Expected > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=83, > Queue=State) > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=250, > Queue=State) > Sending Message to Broker in port 5674: Message(LVQ_ID="Some", Content=46, > Queue=State) > > Consume Message to Broker in port 5672: Got 46 > > 3) NOT Working as Expected > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=887, > Queue=State) > Sending Message to Broker in port 5674: Message(LVQ_ID="Some", Content=660, > Queue=State) > > Consume Message to Broker in port 5674: Got 887 > > 4) NOT Working as Expected > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=520, > Queue=State) > Sending Message to Broker in port 5672: Message(LVQ_ID="Some", Content=690, > Queue=State) > Sending Message to Broker in port 5674: Message(LVQ_ID="Some", Content=784, > Queue=State) > > Consume Message to Broker in port 5674: Got 690 > > Did you see something similar? > > Thanks & Best Regards, > Luis > > > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html > >
