VladRodionov opened a new pull request, #8279: URL: https://github.com/apache/hbase/pull/8279
## Summary This PR refactors HFile reader cache access to go through `CacheAccessService`. `CacheConfig` now exposes a `CacheAccessService` backed by the existing `BlockCache`, or by a disabled no-op service when block cache is not configured. `HFileReaderImpl` and `HFilePreadReader` use this service for block cache lookup and cache population instead of accessing `BlockCache` directly. ## Changes - Add `CacheAccessService` wiring to `CacheConfig` - Keep existing `CacheConfig#getBlockCache()` unchanged for compatibility - Refactor `HFileReaderImpl` cache lookup/population to use `CacheAccessService` - Refactor `HFilePreadReader` cache access to use `CacheAccessService` - Preserve existing cache flags and behavior ## Notes This PR does not change cache construction, `BlockCacheFactory`, topology-backed runtime selection, or writer-path cache population. The intent is to keep behavior unchanged while moving the HFile read path from direct `BlockCache` access to the new service abstraction introduced in HBASE-30021. ## Testing Ran: ```bash mvn -pl hbase-server spotless:check mvn -pl hbase-server checkstyle:check mvn -pl hbase-server -DskipTests compile mvn -pl hbase-server test ``` -- 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]
