Commit 522b7eb
* Return early from Kafka consume_messages when partition end is reached
Instead of waiting until the global timeout, break immediately when
poll() returns None or when all assigned partitions report EOF. This
makes the read_messages action fast when there are no more messages
to consume.
* Add changelog entry for kafka_actions early return fix
* Simplify early return tests to 2 concise tests
* Remove enable.partition.eof and EOF tracking — just break on None
---------
(cherry picked from commit 50338a5)
Co-authored-by: Piotr WOLSKI <piotr.wolski42@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5c2d77d commit 522b7eb
File tree
3 files changed
+29
-3
lines changed- kafka_actions
- changelog.d
- datadog_checks/kafka_actions
- tests
3 files changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
527 | 551 | | |
528 | 552 | | |
0 commit comments