Skip to content

Conversation

@seekskyworld
Copy link

Issue: https://issues.apache.org/jira/browse/ZOOKEEPER-5012

Summary

  • Guard zkDb close in QuorumPeer.shutdown when initialization did not finish.
  • Add a QuorumPeerTest regression for shutdown without zkDb.

Motivation

  • During restart, shutdown can run before zkDb is initialized; avoid NPE while preserving cleanup.

Validation

  • mvn -pl zookeeper-server -Dtest=QuorumPeerTest#testShutdownWithoutZkDbDoesNotThrow test

@seekskyworld seekskyworld force-pushed the fix/5012-quorumpeer-shutdown-npe branch from 9620c67 to 0703e20 Compare January 21, 2026 02:19
@seekskyworld seekskyworld changed the base branch from branch-3.9 to master January 21, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant