Skip to content

Conversation

@seekskyworld
Copy link

@seekskyworld seekskyworld commented Jan 14, 2026

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

Summary:

  • add a closed-state guard so stale references throw an IllegalStateException instead of NPEs
  • keep close idempotent and avoid marking the instance closed during truncateLog reopen
  • add coverage for save-after-close and idempotent close

Motivation:

  • improve diagnostics when stale ZooKeeperServer references hit FileTxnSnapLog after shutdown

Validation:

  • maven3\current\bin\mvn.cmd -pl zookeeper-server -Dtest=FileTxnSnapLogTest test

@seekskyworld seekskyworld force-pushed the fix/5011-filetxnsnaplog-closed branch from c83704c to ee9c131 Compare January 16, 2026 15:44
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