Skip to content

ZOOKEEPER-5114: Prevent audit failures from interrupting closeSession in DataTree - #2483

Open
ikxeno wants to merge 1 commit into
apache:masterfrom
ikxeno:ZOOKEEPER-5114
Open

ikxeno wants to merge 1 commit into
apache:masterfrom
ikxeno:ZOOKEEPER-5114

Conversation

@ikxeno

@ikxeno ikxeno commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

An exception from a custom audit logger could leave closeSession partially applied and put the server into ERROR. DataTree now catches RuntimeException and LinkageError from audit writes, reports the failure in the regular log, and completes ephemeral cleanup.

Regression tests cover both closeSession paths, repeated failures, and missing nodes.

A custom audit logger can throw while closeSession is deleting ephemeral
nodes. Catch RuntimeException and LinkageError at the audit call so cleanup
finishes and lastProcessedZxid advances. Report the failure in the regular
log.

Add regression coverage for both closeSession paths, repeated audit failures,
and missing nodes.
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