lhotari opened a new pull request, #25157: URL: https://github.com/apache/pulsar/pull/25157
Fixes #25154 ### Motivation While investigating a flaky test, I noticed that a Pulsar Function instance didn't shutdown gracefully due to interrupted thread status. The change in #25140 brought this to surface since closing producers gracefully requires that the calling thread isn't interrupted. ### Modifications Clear the interrupted state of the current thread in the Function instance before proceeding to call the close method. ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
