8 Replies Latest reply on Aug 17, 2011 4:00 AM by Isaac Liao

    HornetQ-2.1.2-Final lose messages when cluster and the message's expirationTime is specified?

    Isaac Liao Newbie

      Hi,

       

      I use HornetQ-2.1.2-Final.

      I setup cluster environment in machines whose ips are 192.168.0.17 and 192.168.18.107.

      There is a consumer connect to 192.168.18.107.

      There is a producer connect to 192.168.0.17

      There is a queue: ExampleQueue in both machine's HornetQ server.

      The ExampleQueue's expiry-address is also ExampleQueue.

       

      The machine 192.168.18.107 time is earlier than the machine 192.168.0.17 about 1 minute.

      For example, when 192.168.18.107 is 15:27, the 192.168.0.17 is 15:28.

       

       

      When the producer send a text message with expirationTime 3000 millis,

      I expect the consumer will receive the message, but it didnt.

      When I change the expirationTime to 2 minutes, the consumer will receive the message correctly.

       

      I monitor HornetQ through jconsole,

      and saw the ExampleQueue's MessagesAdded and MessageCount are not changed in both HornetQ server.

       

       

       

      I can't find such information in the community and google, so post here.

       

      I attached my environment image, configuration and test code.

       

      Is my configuration wrong?

      Thanks