lhotari commented on pull request #10599: URL: https://github.com/apache/pulsar/pull/10599#issuecomment-841793435
> But after call countdown, main thread can cancel the future, that means the Interruption exception can probably be caught by outer catch. > You can test it locally by add some time-consuming action after countdown. I don't see how this could happen. Interrupting a thread doesn't stop execution. It sets the interrupted status and interrupts any blocking methods such as sleep or blocking IO with an InterruptedException. Calling countDown will never be interrupted. Makes sense? -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org