-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][client]Fix scheduledExecutorProvider not shutdown #17527
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
[fix][client]Fix scheduledExecutorProvider not shutdown #17527
Conversation
|
/pulsarbot run-failure-checks |
bcc14ca to
5d41763
Compare
Jason918
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
|
@Technoboy- @codelipenghui This PR fixed the bug introduced by #16334, which is included in 2.11.0. Can we also add this in 2.11.0? |
nicoloboschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the null-check is still needed
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.pulsar.client.util.ScheduledExecutorProvider.isShutdown()" because "this.scheduledExecutorProvider" is null
at org.apache.pulsar.client.impl.PulsarClientImpl.shutdownExecutors(PulsarClientImpl.java:895)
at org.apache.pulsar.client.impl.PulsarClientImpl.shutdown(PulsarClientImpl.java:833)
at org.apache.pulsar.client.impl.PulsarClientImpl.(PulsarClientImpl.java:234)
at org.apache.pulsar.client.impl.PulsarClientImpl.(PulsarClientImpl.java:154)
at org.apache.pulsar.client.impl.ClientBuilderImpl.build(ClientBuilderImpl.java:63)
at org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.createNewPulsarClient(MockedPulsarServiceBaseTest.java:183)
at org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.replacePulsarClient(MockedPulsarServiceBaseTest.java:190)
at org.apache.pulsar.client.impl.ClientWithSocks5ProxyTest.testSetErrorProxyAddress(ClientWithSocks5ProxyTest.java:167)
5d41763 to
da29c84
Compare
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
yes, sure |
Fixed. @nicoloboschi PTAL |
|
@nicoloboschi PTAL. This is a release blocker for 2.10.2. |
|
Nice catch! |
* Fix scheduledExecutorProvider not shutdown * Fix check null (cherry picked from commit a23963d)
* Fix scheduledExecutorProvider not shutdown * Fix check null (cherry picked from commit a23963d)
* Fix scheduledExecutorProvider not shutdown * Fix check null
* Fix scheduledExecutorProvider not shutdown * Fix check null (cherry picked from commit a23963d)
* Fix scheduledExecutorProvider not shutdown * Fix check null (cherry picked from commit a23963d)
Motivation
org.apache.pulsar.client.impl.PulsarClientImpl#scheduledExecutorProvidernot shutdownModifications
scheduledExecutorProviderVerifying this change
Documentation
doc-not-needed