phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3790) Execute cross region index maintenance calls outside of row lock when WAL edits are disabled
Date Fri, 14 Apr 2017 21:50:41 GMT

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

Andrew Purtell commented on PHOENIX-3790:
-----------------------------------------

[~giacomotaylor] [~gjacoby] Wouldn't it be fair to say if there is an index defined on a Phoenix
table then a mutation with durability of SKIP_WAL can just be ignored? The Durability thing
is just a hint, that WAL entries are not _required_.  If there are indexes, we could require
them nonetheless. Something to think about. 

> Execute cross region index maintenance calls outside of row lock when WAL edits are disabled
> --------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3790
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3790
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>
> A corner case related to PHOENIX-3789. Non transactional, mutable secondary index maintenance
relies on the the WAL edit as state so that the actual index writes can be done later. When
WAL edits are disabled, the writes to the index table are done in the preBatchMutation while
the row locks are still held which should be avoided.
> This can be fixed by either leveraging a way of passing state between coprocessor hooks
(which I'm not sure exists) or through thread locals as a last resort.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message