phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-2885) Set default value for UPDATE_CACHE_FREQUENCY
Date Thu, 11 May 2017 19:09:04 GMT


James Taylor commented on PHOENIX-2885:

[~apurtell] - FYI, we have UpdateCacheIT which verifies how many RPCs are made with and without

Same question as Andrew on the test failures, []. Couple of other comments:
* We'll need a good way of getting better test coverage when we have a default update cache
frequency specified. One issue you already found was PHOENIX-3841 which is good, but we'll
want to make sure there aren't other bugs lurking when we turn this on. Where you thinking
to add more unit tests with PHOENIX-3823? Another possible way would be to parameterize some
tests so that they run with a default update cache frequency - we'd have to think about which
sets of tests this would make the most sense for.
* For the MetaDataClient changes, you'll want to get the parent update cache frequency and
use that if there's no update cache frequency specified on the table directly and then only
use the default update cache frequency if there's no parent (that way, a view will have the
same cache frequency update as it's parent and an index will have the same cache frequency
as the table it is on). The precedence should work like this:
** first use value of update cache frequency specified directly on the table
Long ucfProp = (Long) TableProperty.UPDATE_CACHE_FREQUENCY.getValue(tableProps);
** second, {{if (ucfProp == null && parent != null)}} then should use the value on
the parent
ucfProp = parent.getUpdateCacheFrequency();
** otherwise, use the new default update cache frequency value

> Set default value for UPDATE_CACHE_FREQUENCY
> --------------------------------------------
>                 Key: PHOENIX-2885
>                 URL:
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: James Taylor
>            Assignee: Maddineni Sukumar
>             Fix For: 4.11.0
>         Attachments: PHOENIX-2885.4.10-HBase-0.98.patch, PHOENIX-2885.v2.patch
> We have the ability currently to tell Phoenix how stale we're will to have the metadata
through our UPDATE_CACHE_FREQUENCY feature[1]. By default, when a table is created, unless
explicitly specified, there is no UPDATE_CACHE_FREQUENCY set. We should provide a new Phoenix
configuration parameter to specify a default value when a CREATE TABLE statement is executed.
In addition, when a VIEW is created, we should inherit the UPDATE_CACHE_FREQUENCY value from
the parent (unless it's explicitly specified) and then fallback to the new default config
> [1]

This message was sent by Atlassian JIRA

View raw message