Repository navigation
Commit 248470e
Fixes: #4907
Kafka clients treat InvalidPidMappingException as fatal to the current
producer. DefaultKafkaProducerFactory kept that producer cached, so every
later send reused the defunct instance.
Remove and close the producer when the send callback receives this exception,
as already done for OutOfOrderSequenceException, and verify that the next
request creates a fresh producer.
Signed-off-by: Jonghun Ju <85150438+wn1331@users.noreply.github.com>
(cherry picked from commit 934fdf1)
1 parent bab4b32 commit 248470e
2 files changed
Lines changed: 14 additions & 3 deletions
File tree
- spring-kafka/src
- main/java/org/springframework/kafka/core
- test/java/org/springframework/kafka/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
1121 | | - | |
| 1122 | + | |
1122 | 1123 | | |
1123 | 1124 | | |
1124 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
499 | | - | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
501 | 511 | | |
502 | 512 | | |
503 | | - | |
| 513 | + | |
504 | 514 | | |
505 | 515 | | |
506 | 516 | | |
| |||
0 commit comments