Commit f906bf2
Always emit consumer_deleted event when stream consumer goes away
Not only when it is removed explicitly by the client. This is necessary
to make sure the consumer record is removed from the management ETS
tables (consumer_stats) and to avoid ghost consumers.
For other protocols like AMQP 091, the consumer_status ETS table is
cleaned up when a channel goes down, but there is no channel concept in
the stream protocol.
This is not consistent with other protocols or queue implementations
(which emits the event only on explicit consumer cancellation)
but is necessary to clean up stats correctly.
References rabbitmq#130921 parent 5c2e6d5 commit f906bf2
File tree
2 files changed
+13
-21
lines changed- deps/rabbitmq_stream/src
2 files changed
+13
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2155 | 2155 | | |
2156 | 2156 | | |
2157 | 2157 | | |
2158 | | - | |
| 2158 | + | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
| |||
3084 | 3084 | | |
3085 | 3085 | | |
3086 | 3086 | | |
3087 | | - | |
| 3087 | + | |
3088 | 3088 | | |
3089 | 3089 | | |
3090 | 3090 | | |
| |||
3216 | 3216 | | |
3217 | 3217 | | |
3218 | 3218 | | |
3219 | | - | |
| 3219 | + | |
3220 | 3220 | | |
3221 | 3221 | | |
3222 | 3222 | | |
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | | - | |
3302 | | - | |
| 3301 | + | |
3303 | 3302 | | |
3304 | 3303 | | |
3305 | 3304 | | |
| |||
3310 | 3309 | | |
3311 | 3310 | | |
3312 | 3311 | | |
3313 | | - | |
3314 | | - | |
| 3312 | + | |
3315 | 3313 | | |
3316 | 3314 | | |
3317 | 3315 | | |
| |||
3428 | 3426 | | |
3429 | 3427 | | |
3430 | 3428 | | |
3431 | | - | |
3432 | | - | |
| 3429 | + | |
3433 | 3430 | | |
3434 | 3431 | | |
3435 | 3432 | | |
| |||
3456 | 3453 | | |
3457 | 3454 | | |
3458 | 3455 | | |
3459 | | - | |
3460 | | - | |
| 3456 | + | |
3461 | 3457 | | |
3462 | 3458 | | |
3463 | 3459 | | |
| |||
0 commit comments