Springboot Kafka producer and InvalidPidMappingException #3785
Unanswered
radu-barbu-sage
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using Spring boot 3.4.3 and Spring Kafka 3.3.3 if the producers are not used for more than a week I get the following errors
Template code:
and this is the code for Kafka producer
ProducerConfig values:
I've read that the issue is related to transactional.id.expiration.ms setting from Kafka server properties. I'm attempting to reproduce the error locally so I've started a local Kafka broker and set the transactional.id.expiration.ms=5000 (5 seconds). how can I create a unit test to reproduce this error on my local Kafka broker?
Setting setMaxAge to 1 day in production did not solve my problem as indicated in other SO questions Facing org.apache.kafka.common.errors.InvalidPidMappingException in spring kafka, How to correct handle InvalidPidMappingException or from here https://medium.com/@micaelaturrin/invalidpidmappingexception-issue-in-a-kafka-transactional-producer-ee1a6503bf31 does not seems to fix the issue.
Beta Was this translation helpful? Give feedback.
All reactions