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][misc] NPE during standalone shutdown #22636

Merged
merged 2 commits into from
May 2, 2024

Conversation

nicoloboschi
Copy link
Contributor

@nicoloboschi nicoloboschi commented May 2, 2024

Motivation

java.lang.NullPointerException: Cannot invoke "org.apache.bookkeeper.common.component.LifecycleComponent.close()" because "bookie" is null
	at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.stop(LocalBookkeeperEnsemble.java:501) ~[pulsar-broker-3.2.2.jar:3.2.2]
	at org.apache.pulsar.PulsarStandaloneStarter.lambda$new$0(PulsarStandaloneStarter.java:123) ~[pulsar-broker-3.2.2.jar:3.2.2]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]

Modifications

  • Fix NPE while closing pulsar standalone and bookies are not completed initialized yet

  • doc-not-needed

Copy link

github-actions bot commented May 2, 2024

@nicoloboschi Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels May 2, 2024
@nicoloboschi nicoloboschi merged commit 41f633f into apache:master May 2, 2024
55 of 56 checks passed
@nicoloboschi nicoloboschi added this to the 3.3.0 milestone May 2, 2024
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants