phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihir Monani (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-5266) Client can only write on Index Table and skip data table if failure happens because of region split/move etc
Date Wed, 08 May 2019 09:31:01 GMT


Mihir Monani commented on PHOENIX-5266:

I have updated new patch with test case changes suggested by [] Also IndexRebuildTaskIT
passes for me as well as all other failed test.

As suggested by [~abhishek.chouhan] [~vincentpoon]  I have made changes into how we handle
mutationBatchList. With current patch, it will remove batch which are already applied via
htable.batch. So whenever failure happens, it would only happen in first batch in mutationBatchList
and we can accommodate optimization for REPLAY_ONLY_INDEX_WRITES. 

I have also tested this patch with batchSize=1000 too in test case and it passes successfully.

Once i get QA run for 4.x-HBase-1.3 branch i will upload patch for master branch too. 

> Client can only write on Index Table and skip data table if failure happens because of
region split/move etc
> ------------------------------------------------------------------------------------------------------------
>                 Key: PHOENIX-5266
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0, 4.14.1, 5.1.0, 4.14.2
>            Reporter: Mihir Monani
>            Assignee: Mihir Monani
>            Priority: Blocker
>             Fix For: 4.14.2
>         Attachments: PHOENIX-5266-4.x-HBase-1.3.01.patch, PHOENIX-5266-4.x-HBase-1.3.02.patch,
PHOENIX-5266.patch, PHOENIX-5266.patch
> With Phoenix 4.14.1 client, There is a scenario where client would skip data table write
but do successful index table write. In this case, we should treat it as Data loss scenario.
> Relevant code path :-
> []
> []
> Here is what happens :-
>  * Consider below assumptions for scenario :- 
>  ** max no row in single batch = 100
>  ** max size of batch = 2 MB
>  * When client faces SQLException Code 1121, it sets variable shouldRetryIndexedMutation=true.
>  * In scenarios where client sends batch of 100 rows only as per configuration, but batch
size is >2 MB, will split this 100 row batch into multiple smaller
batches which are <2MB.
>  ** :- []
>  * Suppose there are 5 batches of 20 rows but client faces 1121 SQLExceptionCode on 2nd
batch , then it will set shouldRetryIndexedMutation=true and it will retry all 5 batches again
with only Index updates. This will results in rows missing from Data table.

This message was sent by Atlassian JIRA

View raw message