Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6581

Change log level from DEBUG to WARN in ActiveMQMessageConsumer.dequeue(long timeout)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 5.x
    • None
    • JMS client
    • Camel 'from' endpoint for ActiveMQ component on Linux servers (ActiveMQ consumer client)

    Description

      Change the log level from DEBUG to WARN in the consumeExpiredMessage block of the dequeue(long timeout) method of the ActiveMQMessageConsumer class in the org.apache.activemq package.

      Currently, the consumeExpiredMessage block logs "{} received expired message: {}" at the DEBUG level when a message is picked from the queue and found to be expired. Other than the DEBUG log entry, the message is quietly consumed. In a Camel context, the message is not forwarded to the Camel route and the message appears to be lost because it is common practice to LOG at INFO or above in production environments.

      Proposed, change consumeExpiredMessage to WARN when a message is consumed and dropped.

      Rationale: Although, the disposition of expired messages should be an occasional occurrence, the expiration may become systematic when a NTP daemon fails to operate properly. (This is a real world case that caused a week long outage and is the reason for this request). Changing the level to WARN will reduce the diagnosis time significantly. When the producer and consumer are on different servers and are communicating with a broker over a network, the WARN message on the consumer will provide quick evidence that the message successfully crossed the network but was consumed (dropped) by the consumeExpiredMessage block.

      Attachments

        Activity

          People

            Unassigned Unassigned
            richaosu Richard O'Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified