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

Setting queue policy queuePrefetch=0 in broker configuration causes messages to stay in pending state in broker - the messages aren't consumed

    XMLWordPrintableJSON

    Details

      Description

      Broker prefetch config

      <policyEntry queue="XX" ... queuePrefetch="0">

      takes effect if the consumerInfo contains the default value (1000), indicating that it does not have a preference.
      However in the case that the broker chooses 0, to make all consumers pull messages, this information needs to be propagated back to the consumer to allow the receive(..) call to initiate a pull. Currently it is conditional on the consumer prefetch value == 0 which is currently not updated.

      The fix is to have the broker send a connection control message to update the prefetch when broker config uses 0, and have the receive(..) call check the current prefetch value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gtully Gary Tully
                Reporter:
                gtully Gary Tully
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: