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

ProxyMessageStore doesn't properly delegate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.11.1
    • 5.12.0
    • Broker

    Description

      In ProxyMessageStore the method asyncAddTopicMessage does not call the delegate method as it should. This causes a StackOverflowError if the method is called as it will just recursively keep calling the same method over and over again.

      The problem is here on line 141 of ProxyMessageStore.java:

      @Override
      public ListenableFuture<Object> asyncAddTopicMessage(ConnectionContext context, Message message, boolean canOptimizeHint) throws IOException {
        return asyncAddTopicMessage(context,message,canOptimizeHint);
      }
      

      This simply should be changed to:

      @Override
      public ListenableFuture<Object> asyncAddTopicMessage(ConnectionContext context, Message message, boolean canOptimizeHint) throws IOException {
        return delegate.asyncAddTopicMessage(context,message,canOptimizeHint);
      }
      

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            cshannon Christopher L. Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: