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

Duo Zhang updated HBASE-27464:
------------------------------
    Fix Version/s: 2.6.0
                   3.0.0-alpha-4
                   2.5.2
                   2.4.16
     Hadoop Flags: Reviewed
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

Pushed to branch-2.4+.

Thanks [~comnetwork]!

> In memory compaction 'COMPACT' may cause data corruption when adding cells 
> large than maxAlloc(default 256k) size
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-27464
>                 URL: https://issues.apache.org/jira/browse/HBASE-27464
>             Project: HBase
>          Issue Type: Bug
>          Components: in-memory-compaction
>            Reporter: zhuobin zheng
>            Assignee: chenglei
>            Priority: Critical
>             Fix For: 2.6.0, 3.0.0-alpha-4, 2.5.2, 2.4.16
>
>         Attachments: image-2022-11-04-15-46-21-645.png
>
>
> When init 'CellChunkImmutableSegment' for 'COMPACT' action, we not force copy 
> to current MSLab. 
> When cell size bigger than maxAlloc, cell will stay in previous chunk which 
> will recycle after segment replace, and we may read wrong data when these 
> chunk reused by others.
> !image-2022-11-04-15-46-21-645.png!
>  
> Timeline:
>  # add a cell 'A' bigger than 256K
>  # cell 'A' will copy to a chunk 'A' when first compact
>  # cell 'A' will retain in chunk 'A' when second compact
>  # chunk 'A' recycled after segment swap and close



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

Reply via email to