Skip to content

[core] Add opt-in BLOB range access logs - #11443

Draft
LsomeYeah wants to merge 1 commit into
apache:masterfrom
LsomeYeah:codex/blob-access-log
Draft

LsomeYeah wants to merge 1 commit into
apache:masterfrom
LsomeYeah:codex/blob-access-log

Conversation

@LsomeYeah

Copy link
Copy Markdown
Contributor

Purpose

File-level access logs cannot distinguish individual BLOBs packed into the same file. Add opt-in range-level access logging to the Java reader for managed BLOB files and resolved BLOB views.

Enable blob-access-log.enabled on the source table (default: false). INFO events include the path, offset, and length:

  • DESCRIPTOR_ACCESS when an object's descriptor is retrieved, including during BLOB view resolution.
  • CONTENT_ACCESS after a successful full read or explicit stream open. A full read logs once even though it opens a stream internally.

The events describe the entire object range. They do not carry row IDs or cover detached descriptors read outside the instrumented table reader.

Tests

  • Extended BlobTableTest to verify direct BLOB and BLOB view reads with the option enabled only on the source table, event types and physical ranges, no double logging, and no content events on read/open failures.
  • JDK 8 reactor package and focused BLOB, row-tracking, and deletion-vector regression tests: 283 passed, 1 skipped.
  • git diff --check passed.

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