Xiaolin Ha created HBASE-27882:
----------------------------------

             Summary: Avoid always reinit the decompressor in the hot read path
                 Key: HBASE-27882
                 URL: https://issues.apache.org/jira/browse/HBASE-27882
             Project: HBase
          Issue Type: Improvement
          Components: regionserver
    Affects Versions: 2.5.4, 3.0.0-alpha-3
            Reporter: Xiaolin Ha
            Assignee: Xiaolin Ha
         Attachments: image-2023-05-24-11-06-48-569.png

When seting "hbase.block.data.cachecompressed=true", the cached blocks are 
decompressed when reading. But we are using pooled decompressors here, which 
means the decompressor configs should be refreshed as a prepare job before each 
decompressing, see the line here 

[https://github.com/apache/hbase/blob/22526a6339afa230679bcf08fa1c917b04cdac6d/hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/HFileBlockDefaultDecodingContext.java#L99]

I have pointed out the lock of Configuration.get problem in HBASE-27672, it 
should be avoid when reiniting in the hot read path either. 

!image-2023-05-24-11-06-48-569.png|width=668,height=286!

 



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

Reply via email to