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

Ankit Singhal updated PHOENIX-3609:
-----------------------------------
    Attachment: BUG-67084_v1.patch

[[email protected]], can you please review the attached patch.

-- Current check is just to check the prefix of store file's first row key with 
region start key and rebuild the region using data table store files.
-- It can give a false negative in some cases, where the data is in such a way 
that prefix can match. those cases are not yet handled. I may check IndexId and 
see if it is less than the highest indexId.


> Detect and fix corrupted local index region during compaction
> -------------------------------------------------------------
>
>                 Key: PHOENIX-3609
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3609
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Ankit Singhal
>            Assignee: Ankit Singhal
>         Attachments: BUG-67084_v1.patch
>
>
> Local index regions can be corrupted when hbck is run to fix the overlap 
> regions and directories are simply merged for them to create a single region.
> we can detect this during compaction by looking at the start keys of each 
> store files and comparing prefix with region start key. if local index for 
> the region is found inconsistent, we will read the store files of 
> corresponding data region and recreate a data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to