taklwu opened a new pull request, #8851: URL: https://github.com/apache/hbase/pull/8851
RegionServers often already capture plain HFile size (and sometimes full `FileStatus`) from compaction, store-file listing, or tracker registration. This change avoids repeating filesystem metadata work when opening readers. - Cache or infer `FileStatus` on `StoreFileInfo` for **plain HFiles** (not links/references). - Open read paths via `FSUtils.openForRead()` using `openFile().withFileStatus(...)` when the FS supports it, with fallback to `open(path)`. - Use **inferred** status only for open; **`plainHFileStatusNeedsRefresh`** forces a real stat before block locality (`getReferencedFileStatus` / `computeHDFSBlocksDistribution`). - Pass listed `FileStatus` from `StoreFileTrackerBase` when registration already has it. used Cursor assist for this PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
