[fix][client]Fix scheduledExecutorProvider not shutdown#17527
Conversation
|
/pulsarbot run-failure-checks |
bcc14ca to
5d41763
Compare
|
@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.
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