Commit 7cb0b8c
authored
Add shutdown_strategy_before_consumer flag (#467)
* Add shutdown_strategy_before_consumer flag
Full stacktrace we are encountering:
File "sentry/utils/kafka.py", line 52, in run_processor_with_signals
processor.run()
File "arroyo/processing/processor.py", line 335, in run
self._run_once()
File "arroyo/processing/processor.py", line 418, in _run_once
self.__processing_strategy.poll()
File "arroyo/processing/strategies/healthcheck.py", line 32, in poll
self.__next_step.poll()
File "arroyo/processing/strategies/guard.py", line 101, in poll
self.__inner_strategy.poll()
File "arroyo/processing/strategies/run_task.py", line 55, in poll
self.__next_step.poll()
File "arroyo/processing/strategies/guard.py", line 37, in poll
self.__next_step.poll()
File "arroyo/processing/strategies/batching.py", line 82, in poll
self.__reduce_step.poll()
File "arroyo/processing/strategies/reduce.py", line 110, in poll
self.__buffer_step.poll()
File "arroyo/processing/strategies/buffer.py", line 165, in poll
self.__flush(force=False)
File "arroyo/processing/strategies/buffer.py", line 125, in __flush
self.__next_step.submit(buffer_msg)
File "arroyo/processing/strategies/guard.py", line 82, in submit
self.__inner_strategy.submit(message)
File "arroyo/processing/strategies/run_task.py", line 52, in submit
self.__next_step.submit(Message(value))
File "arroyo/processing/strategies/guard.py", line 34, in submit
self.__next_step.submit(message)
File "sentry/spans/consumers/process/flusher.py", line 316, in submit
self.next_step.submit(message)
File "arroyo/processing/strategies/commit.py", line 34, in submit
self.__commit(message.committable)
File "arroyo/processing/processor.py", line 321, in __commit
self.__consumer.commit_offsets()
File "arroyo/backends/kafka/consumer.py", line 624, in commit_offsets
return self.__commit_retry_policy.call(self.__commit)
File "arroyo/utils/retries.py", line 88, in call
return callable()
File "arroyo/backends/kafka/consumer.py", line 582, in __commit
result = self.__consumer.commit(
KafkaException: KafkaError{code=UNKNOWN_MEMBER_ID,val=25,str="Commit failed: Broker: Unknown member"}
* dedupe code1 parent c5614d7 commit 7cb0b8c
1 file changed
+51
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 175 | + | |
216 | 176 | | |
217 | 177 | | |
218 | 178 | | |
| |||
302 | 262 | | |
303 | 263 | | |
304 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| |||
518 | 519 | | |
519 | 520 | | |
520 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
521 | 529 | | |
522 | 530 | | |
523 | 531 | | |
| |||
0 commit comments