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 dispatch_events(state, demand, events) body does not reset state.demand. This can cause the internal demand counter to remain at 1 even though the demand has been met. This, in turn, can cause single events to be dropped as they are received from RabbitMQ, which prints a warning:
GenStage producer :my_rabbitmq_producer has discarded 1 events from buffer
I'm aware that this library is likely EOL (#18) but wanted to share this in case others are seeing the same issue.
The
dispatch_events
function contains a bug when the demand reaches zero.wabbit/lib/wabbit/gen_stage.ex
Lines 398 to 408 in 26cf5d2
The
dispatch_events(state, demand, events)
body does not resetstate.demand
. This can cause the internal demand counter to remain at1
even though the demand has been met. This, in turn, can cause single events to be dropped as they are received from RabbitMQ, which prints a warning:This patch fixes the bug:
The text was updated successfully, but these errors were encountered: