[ 
https://issues.apache.org/jira/browse/HBASE-30023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Rodionov updated HBASE-30023:
--------------------------------------
    Description: 
Description

Refactor write path, prefetch, and compaction-related cache population to use 
CacheAccessService instead of directly interacting with BlockCache.

This change updates all non-read-path cache interactions to go through 
CacheAccessService, including:
        •       cache-on-write in HFileWriter
        •       prefetch-related cache population
        •       compaction-related cache population
        •       block invalidation triggered during file lifecycle events

Scope
        •       Replace direct BlockCache calls in:
        •       HFile write path
        •       prefetch logic
        •       compaction workflows
        •       Route all cache population and invalidation operations through 
CacheAccessService
        •       Adapt existing parameters to use write and invalidation context 
objects

Notes
        •       No behavior change intended
        •       Existing cache implementations (LruBlockCache, BucketCache, 
CombinedBlockCache) remain unchanged
        •       CacheAccessService continues to delegate to BlockCache in this 
phase
        •       Complements read-path migration by ensuring all cache 
interactions go through a unified abstraction


  was:
Adapt BucketCache to the new BlockCacheEngine interface.

Ensure compatibility with:
        •       async write path (RAM queue, writer threads)
        •       persistence/backing map
        •       eviction and stats behavior
        •       file-based invalidation

No functional changes expected.


> Refactor write path, prefetch, and compaction cache population to use 
> CacheAccessService
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-30023
>                 URL: https://issues.apache.org/jira/browse/HBASE-30023
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Vladimir Rodionov
>            Assignee: Vladimir Rodionov
>            Priority: Major
>
> Description
> Refactor write path, prefetch, and compaction-related cache population to use 
> CacheAccessService instead of directly interacting with BlockCache.
> This change updates all non-read-path cache interactions to go through 
> CacheAccessService, including:
>       •       cache-on-write in HFileWriter
>       •       prefetch-related cache population
>       •       compaction-related cache population
>       •       block invalidation triggered during file lifecycle events
> Scope
>       •       Replace direct BlockCache calls in:
>       •       HFile write path
>       •       prefetch logic
>       •       compaction workflows
>       •       Route all cache population and invalidation operations through 
> CacheAccessService
>       •       Adapt existing parameters to use write and invalidation context 
> objects
> Notes
>       •       No behavior change intended
>       •       Existing cache implementations (LruBlockCache, BucketCache, 
> CombinedBlockCache) remain unchanged
>       •       CacheAccessService continues to delegate to BlockCache in this 
> phase
>       •       Complements read-path migration by ensuring all cache 
> interactions go through a unified abstraction



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to