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
Starting in this PR, we now abandon prefetched orchestration messages when we lose our lease. However, we fail to decrease pendingOrchestrationMessages when we do this, meaning that all of those abandoned messages still count against our limit, and we will not reclaim the "space" those lost messages are taking up until the application restarts.
The text was updated successfully, but these errors were encountered:
ConnorMcMahon
changed the title
PendingOrchestrationMessages count does not update when we lose a lease
PendingOrchestrationMessages count does not update when a lease is lost.
Mar 16, 2020
Ah, so we do handle it in that case. My case was subtly different, and I tried to make the issue describe the more general case, but as you pointed out, it should work there.
The case I was looking at it looked like we managed to reclaim the partition lease very quickly, and never actually abandoned the prefetched messages. However, when we reacquire the lease, it looks like we actually create a newControlQueue. Since when we actually process the prefetched messages, when it comes time to delete the message, it is no longer in the pendingMessageIdsfield, as this is an instance variable, and the new ControlQueue starts with a fresh HashSet. Since we don't find a record of the message id in pendingMessageIds, we don't decrement.
ConnorMcMahon
changed the title
PendingOrchestrationMessages count does not update when a lease is lost.
PendingOrchestrationMessages count does not update when a lease is lost and reclaimed rapidly.
Mar 16, 2020
Starting in this PR, we now abandon prefetched orchestration messages when we lose our lease. However, we fail to decrease pendingOrchestrationMessages when we do this, meaning that all of those abandoned messages still count against our limit, and we will not reclaim the "space" those lost messages are taking up until the application restarts.
The text was updated successfully, but these errors were encountered: