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
It seems to me that now, when this condition returns false we have message loss.
Consumer receives a message and discards it, Broker considers it belongs to that Consumer, it will never redeliver it unless it disconnects.
Shouldn't Consumer ask for redelivery of the message instead of discarding it?
I wouldn't characterize this as "message loss", since even if the particular message could be stuck, it would not be deleted until a consumer acknowledges it. So, reconnecting the consumer would unblock it.
I'm also not convinced that the condition can actually happen. Based on the code there would need to be these conditions :
Use receiveAsync()
Disable consumer prefetch queue
We receive a message but we don't have a callback waiting for it
I'm not sure how if this can happen given that:
If application used receiveAsync() then we would have a callback waiting
reciveAsync() request cannot be cancelled
When prefetch queue is 0, the consumer would have requested 1 single message from the broker, and timeout would not be allowed
To conclude, we could trigger the re-delivery of the ignored message, though it would be good to understand under which circumstances that condition can happen.
Activity
merlimat commentedon Oct 12, 2016
I wouldn't characterize this as "message loss", since even if the particular message could be stuck, it would not be deleted until a consumer acknowledges it. So, reconnecting the consumer would unblock it.
I'm also not convinced that the condition can actually happen. Based on the code there would need to be these conditions :
receiveAsync()I'm not sure how if this can happen given that:
receiveAsync()then we would have a callback waitingreciveAsync()request cannot be cancelledTo conclude, we could trigger the re-delivery of the ignored message, though it would be good to understand under which circumstances that condition can happen.
ivankelly commentedon Aug 30, 2018
@sschepens has this happened again?
ivankelly commentedon Dec 5, 2018
Closing due to lack of activity.
Add some test cases for project (apache#58)
[Issue #3]: add kop version and git sha (apache#58)
[fix][broker] Fix replicatorDispatchRateMap reference (apache#58)
[fix][broker] Fix replicatorDispatchRateMap reference (apache#58)