[ https://issues.apache.org/jira/browse/KAFKA-6621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005325#comment-17005325 ]
Antony Stubbs commented on KAFKA-6621: -------------------------------------- related: https://issues.apache.org/jira/browse/KAFKA-6943 > Update Streams docs with details for UncaughtExceptionHandler > ------------------------------------------------------------- > > Key: KAFKA-6621 > URL: https://issues.apache.org/jira/browse/KAFKA-6621 > Project: Kafka > Issue Type: Improvement > Components: documentation, streams > Reporter: Matthias J. Sax > Priority: Minor > > We should update the docs to explain that calling {{KafkaStreams#close()}} > within the UncaughtExceptionHandler-callback might result in a deadlock and > one should always specify a timeout parameter for this case. > As an alternative to avoid the deadlock, setting a flag in the handler and > calling {{#close}} outside of the callback should also work. -- This message was sent by Atlassian Jira (v8.3.4#803005)