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

StatisticsPlugin - field firstMessageTimestamp is not produced for AuthorizationDestinationFilter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.18.3
    • 5.18.4, 5.17.7, 6.1.1
    • Broker
    • None

    Description

      StatisticsBroker does not send field firstMessageTimestamp as dest may be instance of DestinationFilter (in my case: AuthorizationDestinationFilter)

      if (includeFirstMessageTimestamp) {
          if (dest instanceof Queue) {
              ((Queue) dest).doBrowse(tempFirstMessage, 1);
          }
          else if (dest instanceof Topic) {
              ((Topic) dest).doBrowse(tempFirstMessage, 1);
          }
          if (!tempFirstMessage.isEmpty()) {
              Message message = tempFirstMessage.get(0);
              // NOTICE: Client-side, you may get the broker "now" Timestamp by msg.getJMSTimestamp()
              // This allows for calculating age.
              statsMessage.setLong("firstMessageTimestamp", message.getBrokerInTime());
              tempFirstMessage.clear();
          } 

       

      It appears that BaseDestination may be unwinded:

      //unwind BaseDestination
      while (dest instanceof DestinationFilter) {
          dest = ((DestinationFilter) dest).getNext();
      }
       

       

       

      related to feature: https://github.com/apache/activemq/commit/9167a79b79e4c121cfe0a5b82456f52bf3ecc3c7

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              gkochanski Grzegorz Kochański
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m