You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Maddineni Sukumar (JIRA)" <ji...@apache.org> on 2017/05/17 16:56:04 UTC

[jira] [Comment Edited] (PHOENIX-3823) Force cache update on MetaDataEntityNotFoundException

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

Maddineni Sukumar edited comment on PHOENIX-3823 at 5/17/17 4:55 PM:
---------------------------------------------------------------------

New patch with fix for Upsert select scenario mentioned in PHOENIX-3209. 
Adding in same patch as writing unit test is easy and fix is also similar(force cache update)


was (Author: sukunaidu@gmail.com):
New patch with fix for Upsert select scenario mentioned in PHOENIX-3859. 
Adding in same patch as writing unit test is easy and fix is also similar(force cache update)

> Force cache update on MetaDataEntityNotFoundException 
> ------------------------------------------------------
>
>                 Key: PHOENIX-3823
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3823
>             Project: Phoenix
>          Issue Type: Sub-task
>    Affects Versions: 4.10.0
>            Reporter: James Taylor
>            Assignee: Maddineni Sukumar
>             Fix For: 4.11.0
>
>         Attachments: PHOENIX-3823.patch, PHOENIX-3823.v2.patch, PHOENIX-3823.v3.patch, PHOENIX-3823.v4.patch, PHOENIX-3823.v5.patch
>
>
> When UPDATE_CACHE_FREQUENCY is used, clients will cache metadata for a period of time which may cause the schema being used to become stale. If another client adds a column or a new table or view, other clients won't see it. As a result, the client will get a MetaDataEntityNotFoundException. Instead of bubbling this up, we should retry after forcing a cache update on the tables involved in the query.
> The above works well for references to entities that don't yet exist. However, we cannot detect when some entities are referred to which no longer exists until the cache expires. An exception is if a physical table is dropped which would be detected immediately, however we would allow queries and updates to columns which have been dropped until the cache entry expires (which seems like a reasonable tradeoff IMHO. In addition, we won't start using indexes on tables until the cache expires.



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