1 Reply Latest reply on Jun 10, 2015 3:01 PM by jbertram

    Hornetq - Queue operating in PAGING mode with no disk storage left

    rjakkula

      Hi All,

       

       

      Is it possible to DROP all the incoming messages once all the disk space has been used up for PAGING the messages?

       

      We are trying to simulate a scenario where we write to QueueA operating in PAGE mode with a limited disk space.

       

      Once the disk space is exhausted, we see connection failures in the logs and application stopped working. Is it possible to just DROP the messages silently after a particular disk quota has been reached?

       

      I know there is max-size-bytes, which is the max memory size before messages are dropped. Is there a similar setting for disk space? I want to drop all messages when disk quota is exceeded.

       

      2015-06-10 13:24:19,499 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (Thread-40 (HornetQ-client-global-threads-500882376)) Connection failure has been detected: The connection was disconnected because of server shutdown [code=4

       

      2015-06-10 13:24:19,549 INFO  [org.jboss.internal.soa.esb.couriers.JmsCourier] (Thread-25) JMS error.  Attempting JMS reconnect.

      javax.jms.IllegalStateException: Consumer is closed

       

      Caused by: HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown]