Commit bedd8b5
committed
Fix replication queue full-detection to actually detect fullness
BoundedChannelFullMode.DropWrite makes TryWrite report success (and
silently discard the item) even when the channel is full, so the
"queue full -> report member unavailable" branch in Replicate() never
fired and the dropped barrier slot was never resolved, leaking that
ReplicationBarrier instance out of the pool. Wait gives TryWrite the
false-when-full return value the code already assumed.1 parent ac27d5a commit bedd8b5
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/ReplicationUtils
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments