New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible dead lock between DefaultKafkaProducerFactory.expire and DefaultKafkaProducerFactory.removeProducer #2744
Milestone
Comments
garyrussell
added
backport 2.9.x (obsolete)
and removed
status: waiting-for-triage
labels
Jul 17, 2023
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jul 17, 2023
Resolves spring-projects#2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jul 17, 2023
Resolves spring-projects#2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jul 17, 2023
Resolves spring-projects#2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jul 17, 2023
Resolves spring-projects#2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jul 17, 2023
Resolves spring-projects#2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
Thanks for reporting @Nick-The-Uncharted Please note that 2.8.x is no longer supported as OSS https://spring.io/projects/spring-kafka#support - the fix will be in 2.9.10 and 3.0.9 (which should be out today). 2.9.x is fully compatible with Boot 2.7.x. |
artembilan
pushed a commit
that referenced
this issue
Jul 17, 2023
Resolves #2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x**
artembilan
pushed a commit
that referenced
this issue
Jul 17, 2023
Resolves #2744 Possible deadlock if `removeProducer` is called on the producer network thread. Move resetting the global shared producer to the creation logic. Also ensure the delegate of any thread-bound producers are closed. Add try/catch around the delegate close. **cherry-pick to 2.9.x** # Conflicts: # spring-kafka/src/test/java/org/springframework/kafka/core/DefaultKafkaProducerFactoryTests.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In what version(s) of Spring for Apache Kafka are you seeing this issue?
2.8.11
Describe the bug
Following log was printed:
and after 4 hours, the closing thread is still pending, and jstack shows a deadlock:
The text was updated successfully, but these errors were encountered: