Skip to content
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: NPE while cleaning up namespace node #4965

Merged
merged 1 commit into from
Aug 18, 2019
Merged

Conversation

rdhabalia
Copy link
Contributor

Motivation

It fixes below NPE

16:17:50.180 [main INFO  org.apache.pulsar.broker.PulsarService - Starting name space service, bootstrap namespaces=
16:17:50.204 [main ERROR org.apache.pulsar.broker.namespace.NamespaceService - null
java.lang.NullPointerException: null
    at org.apache.pulsar.broker.namespace.ServiceUnitZkUtils.cleanupSingleNamespaceNode(ServiceUnitZkUtils.java:156) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0
    at org.apache.pulsar.broker.namespace.ServiceUnitZkUtils.cleanupNamespaceNodes(ServiceUnitZkUtils.java:134) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0
    at org.apache.pulsar.broker.namespace.ServiceUnitZkUtils.cleanupNamespaceNodes(ServiceUnitZkUtils.java:137) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0
    at org.apache.pulsar.broker.namespace.ServiceUnitZkUtils.initZK(ServiceUnitZkUtils.java:113) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0
    at org.apache.pulsar.broker.namespace.NamespaceService.<init>(NamespaceService.java:151) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0
    at org.apache.pulsar.broker.PulsarService.lambda$getNamespaceServiceProvider$1(PulsarService.java:584) ~[org.apache.pulsar-pulsar-broker-2.4.0.jar:2.4.0

@rdhabalia rdhabalia added this to the 2.4.1 milestone Aug 16, 2019
@rdhabalia rdhabalia self-assigned this Aug 16, 2019
@sijie
Copy link
Member

sijie commented Aug 16, 2019

run java8 tests

3 similar comments
@sijie
Copy link
Member

sijie commented Aug 18, 2019

run java8 tests

@sijie
Copy link
Member

sijie commented Aug 18, 2019

run java8 tests

@sijie
Copy link
Member

sijie commented Aug 18, 2019

run java8 tests

@rdhabalia rdhabalia merged commit 41bc407 into apache:master Aug 18, 2019
@rdhabalia rdhabalia deleted the zk_npe branch August 22, 2019 18:36
jiazhai pushed a commit that referenced this pull request Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants