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

Kadir OZDEMIR updated PHOENIX-5957:
-----------------------------------
    Attachment: PHOENIX-5957.4.x.001.patch

> Index rebuild should remove old index rows with higher timestamp
> ----------------------------------------------------------------
>
>                 Key: PHOENIX-5957
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5957
>             Project: Phoenix
>          Issue Type: Improvement
>    Affects Versions: 5.0.0, 4.14.3
>            Reporter: Kadir OZDEMIR
>            Priority: Major
>         Attachments: PHOENIX-5957.4.x.001.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> During the upgrade of index tables from the old design to the new design, we 
> rebuild the index table rows online. Rebuilding index table rows using the 
> new design is supposed to be overwriting the old index rows. Due to a bug in 
> the old implementation of the index tool (fixed by PHOENIX-5018), the old 
> index row likely have higher timestamps than their data table rows. Since the 
> current implementation of the index tool correctly sets the index row 
> timestamps using the data table row timestamps, newly rebuilt index rows 
> become older versions of the old index rows. So, essentially they do not 
> overwrite old index rows. This does not cause correctness issue as the old 
> rows are repaired by the read repair feature of the new design but increases 
> the number of read repair operations, and thus, causes performance issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to