Skip to content

P14: Port opt-in audit data lengths to ZooKeeper 3.8.7 - #190

Merged
bellatrix007 merged 1 commit into
adbansal/zk-387-p13-child-only-delete-stackedfrom
adbansal/zk-387-p14-audit-data-length-stacked
Dec 3, 2026
Merged

bellatrix007 merged 1 commit into
adbansal/zk-387-p13-child-only-delete-stackedfrom
adbansal/zk-387-p14-audit-data-length-stacked

Conversation

@bellatrix007

Copy link
Copy Markdown

Description

Forward-port #170 from branch-3.6 to ZooKeeper 3.8.7, stacked on #189.
Add opt-in data_length to existing audited create/setData operations,
including failed requests and entries in successful multis.

The field records request payload bytes; null/empty data is 0. Payload
contents are not logged. Enable zookeeper.audit.dataLength.enable=true
together with zookeeper.audit.enable=true; configuration is read at startup.
Data-length auditing defaults to false.

Preserve the source provider, documentation and test scenarios. Retain
3.8.7's audit sanitization, request-user accessor and existing parsing flow.

Tests

On 77c4cc5c:

Validation Java Result
Selected baseline and audit tests 8, 11, 17 40 passed on each
Assembly, RAT, Checkstyle including tests, SpotBugs 11 Passed

All three source AuditDataLengthTest scenarios are retained with required
Jupiter adaptations. Existing default-off audit and sanitization controls
also passed.

The pre-existing standalone createTTL audit gap remains unchanged.
Deployed/mixed-version qualification and earlier stack CI failures (#184,
#186) are separate; this PR does not fix them.

  • Local code review completed

Changes that Break Backward Compatibility (Optional)

Existing audit records are unchanged with the flag off. Enabling it adds
the optional data_length field; downstream log consumers must accept it.
Existing logging overloads remain available. No client/server protocol or
snapshot-format changes.

Documentation (Optional)

Carry the source field and configuration documentation in zookeeperAuditLogs.md.

🤖 Generated with GitHub Copilot CLI

@bellatrix007
bellatrix007 added this pull request to stack #176 November 23, 2026 16:42
@bellatrix007
bellatrix007 force-pushed the adbansal/zk-387-p14-audit-data-length-stacked branch from 77c4cc5 to eb0ca25 Compare November 27, 2026 07:17
@bellatrix007 bellatrix007 added the upgrade-3.8.x Port of LinkedIn patches onto Apache ZooKeeper 3.8.x label Dec 2, 2026

@arkmish arkmish left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@bellatrix007
bellatrix007 force-pushed the adbansal/zk-387-p14-audit-data-length-stacked branch from eb0ca25 to faedb67 Compare December 3, 2026 12:25
Carry PR170 directly, preserving source comments, documentation and test scenarios. Retain existing sanitization and request-user access, with required Jupiter compatibility changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bellatrix007
bellatrix007 force-pushed the adbansal/zk-387-p14-audit-data-length-stacked branch from faedb67 to c2230e8 Compare December 3, 2026 14:56
@bellatrix007
bellatrix007 merged commit e709eb8 into li-dev/base-3.8.7 Dec 3, 2026
31 of 32 checks passed
@bellatrix007
bellatrix007 deleted the adbansal/zk-387-p14-audit-data-length-stacked branch December 3, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upgrade-3.8.x Port of LinkedIn patches onto Apache ZooKeeper 3.8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants