[ 
https://issues.apache.org/jira/browse/PHOENIX-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088366#comment-16088366
 ] 

Samarth Jain commented on PHOENIX-4026:
---------------------------------------

Now that we are making index updates in postBatchMutateIndispensably from the 
WALEdits, what would happen if the region server crashes before doPost() is 
called? Would the WAL replay mechanism still kick in and replay the data and 
index updates from the WAL even though data table writes were successful?

{code}
if (success) { // if miniBatchOp was successfully written, write index updates
        //each batch operation, only the first one will have anything useful, 
so we can just grab that
        Mutation mutation = miniBatchOp.getOperation(0);
        WALEdit edit = miniBatchOp.getWalEdit(0);
        doPost(edit, mutation, mutation.getDurability());
    }
{code}



> Option to not wait on global mutable index write to complete
> ------------------------------------------------------------
>
>                 Key: PHOENIX-4026
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4026
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>         Attachments: PHOENIX-4026_wip.patch
>
>
> Today, a data table update synchronously waits for the index update to 
> complete. While some users may want that kind of strong consistency, some may 
> be ok with the call to return once the data table write is done.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to