phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alicia Ying Shu (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-2221) Option to make data regions not writable when index regions are not available
Date Thu, 19 Nov 2015 22:59:11 GMT


Alicia Ying Shu commented on PHOENIX-2221:

[~jamestaylor] Thanks for the review. 
>The KillServerOnFailurePolicy is just a few lines of code. Just have you implementation
do what you need it to do. Don't depend on KillServerOnFailurePolicy
The main function of KillServerOnFailurePolicy is to abort the Region Server. It is exactly
we need after retrying repairing index failed so that we do not need to duplicate the same
codes. See a few examples such as StoreFailuresInCachePolicy, PhoenixIndexFailurePolicy, etc.
All of them reuse the abort codes of KillServerOnFailurePolicy. involves both client and server side settings for coprocessor,
etc. BaseTest is the one needed. Its subclasses did not work well. 

> Option to make data regions not writable when index regions are not available
> -----------------------------------------------------------------------------
>                 Key: PHOENIX-2221
>                 URL:
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Devaraj Das
>            Assignee: Alicia Ying Shu
>         Attachments: PHOENIX-2221-v1.patch, PHOENIX-2221-v2.patch, PHOENIX-2221.patch
> In one usecase, it was deemed better to not accept writes when the index regions are
unavailable for any reason (as opposed to disabling the index and the queries doing bigger
data-table scans).
> The idea is that the index regions are kept consistent with the data regions, and when
a query runs against the index regions, one can be reasonably sure that the query ran with
the most recent data in the data regions. When the index regions are unavailable, the writes
to the data table are rejected. Read queries off of the index regions would have deterministic
performance (and on the other hand if the index is disabled, then the read queries would have
to go to the data regions until the indexes are rebuilt, and the queries would suffer).

This message was sent by Atlassian JIRA

View raw message