Skip to content

refactor: Enforce callers to provide metadataIoStats to TabletReader (#731)#731

Closed
duxiao1212 wants to merge 1 commit into
facebookincubator:mainfrom
duxiao1212:export-D105338687
Closed

refactor: Enforce callers to provide metadataIoStats to TabletReader (#731)#731
duxiao1212 wants to merge 1 commit into
facebookincubator:mainfrom
duxiao1212:export-D105338687

Conversation

@duxiao1212
Copy link
Copy Markdown
Contributor

@duxiao1212 duxiao1212 commented May 15, 2026

Summary:
X-link: facebookincubator/velox#17534

Remove the defaultIoStats_ fallback in TabletReader and instead enforce that callers always supply ioOptions with a non-null metadataIoStats(). The constructor now does an early NIMBLE_CHECK / NIMBLE_CHECK_NOT_NULL in its init list, so any caller that forgets to set the field fails fast at construction with a clear message.

Reviewed By: xiaoxmeng

Differential Revision: D105338687

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 15, 2026

@duxiao1212 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105338687.

@duxiao1212 duxiao1212 changed the title Require callers to provide metadataIoStats to TabletReader refactor: Enforce callers to provide metadataIoStats to TabletReader May 15, 2026
@duxiao1212 duxiao1212 requested a review from xiaoxmeng May 15, 2026 18:16
@meta-codesync meta-codesync Bot changed the title refactor: Enforce callers to provide metadataIoStats to TabletReader Require callers to provide metadataIoStats to TabletReader May 15, 2026
@duxiao1212 duxiao1212 force-pushed the export-D105338687 branch from a16c977 to 65fccd5 Compare May 15, 2026 19:07
@duxiao1212 duxiao1212 changed the title Require callers to provide metadataIoStats to TabletReader refactor: Enforce callers to provide metadataIoStats to TabletReader May 15, 2026
…ncubator#731)

Summary:
X-link: facebookincubator/velox#17534


Remove the `defaultIoStats_` fallback in `TabletReader` and instead enforce that callers always supply `ioOptions` with a non-null `metadataIoStats()`. The constructor now does an early `NIMBLE_CHECK` / `NIMBLE_CHECK_NOT_NULL` in its init list, so any caller that forgets to set the field fails fast at construction with a clear message.

Reviewed By: xiaoxmeng

Differential Revision: D105338687
@meta-codesync meta-codesync Bot changed the title refactor: Enforce callers to provide metadataIoStats to TabletReader Require callers to provide metadataIoStats to TabletReader (#731) May 15, 2026
@duxiao1212 duxiao1212 force-pushed the export-D105338687 branch from 65fccd5 to ff9b94c Compare May 15, 2026 22:09
duxiao1212 added a commit to duxiao1212/velox that referenced this pull request May 15, 2026
…ncubator#17534)

Summary:

X-link: facebookincubator/nimble#731

Remove the `defaultIoStats_` fallback in `TabletReader` and instead enforce that callers always supply `ioOptions` with a non-null `metadataIoStats()`. The constructor now does an early `NIMBLE_CHECK` / `NIMBLE_CHECK_NOT_NULL` in its init list, so any caller that forgets to set the field fails fast at construction with a clear message.

Reviewed By: xiaoxmeng

Differential Revision: D105338687
@duxiao1212 duxiao1212 changed the title Require callers to provide metadataIoStats to TabletReader (#731) refactor: Enforce callers to provide metadataIoStats to TabletReader (#731) May 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 16, 2026

This pull request has been merged in 0c4ca07.

meta-codesync Bot pushed a commit to facebookincubator/velox that referenced this pull request May 16, 2026
…17534)

Summary:
Pull Request resolved: #17534

X-link: facebookincubator/nimble#731

Remove the `defaultIoStats_` fallback in `TabletReader` and instead enforce that callers always supply `ioOptions` with a non-null `metadataIoStats()`. The constructor now does an early `NIMBLE_CHECK` / `NIMBLE_CHECK_NOT_NULL` in its init list, so any caller that forgets to set the field fails fast at construction with a clear message.

Reviewed By: xiaoxmeng

Differential Revision: D105338687

fbshipit-source-id: 53d2b708ea5ea96c4ca27dc4b50b4d7720e0afa8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants