Skip to content

Slice 3: Reimplement IO stats as a pure store/reader/writer wrapper #7336

Description

@wjones127

Parent PRD

#7331

What to build

Convert IO statistics into an ordinary Lance-level wrapper around the store, Reader, and Writer. Remove the bespoke local compensation: LocalObjectReader / UringReader / LocalWriter should no longer call IOTracker::record_read / record_write directly — stats come from the wrapped reader/writer counting the actual ranges Lance reads and writes.

Acceptance criteria

  • IOTracker reimplemented as a WrappingLanceObjectStore wrapping store + reader + writer
  • No record_read / record_write calls remain in local.rs / uring/* / object_writer.rs
  • Stats count exact ranges read from an opened local file (not just the initial open)
  • Existing IO-stats tests pass; add a local-read range-count assertion
  • Parity: local and cloud stats produced by the same mechanism

Blocked by

Design sections addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions