You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AmqpConsumer uses a backoff policy when there is any channel error or problems like backpressure until the channel reaches its capacity and gets full. In this case the consumer restarts and wait up to backoffTime before consuming data via amqp again. The backoffTime is calculated based on the counter numberOfConsecutiveConnectionErrors. Unfortunateley in this case (channel gets full) this counter is always resetted for each retry. In consequence the counter is always equals to 1 and therefore the backOffTime is always 1000 ms.
See consumeLoop method which resets the counter each time:
The AmqpConsumer uses a backoff policy when there is any channel error or problems like backpressure until the channel reaches its capacity and gets full. In this case the consumer restarts and wait up to backoffTime before consuming data via amqp again. The backoffTime is calculated based on the counter
numberOfConsecutiveConnectionErrors
. Unfortunateley in this case (channel gets full) this counter is always resetted for each retry. In consequence the counter is always equals to 1 and therefore the backOffTime is always 1000 ms.See consumeLoop method which resets the counter each time:
flume-ng-amqp-plugin/src/main/java/org/apache/flume/amqp/AmqpConsumer.java
Lines 165 to 211 in b253ba6
Either the counter must not be resetted within the while loop or the back off time calculation should be independent from that counter.
The text was updated successfully, but these errors were encountered: