You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2020/06/23 01:32:00 UTC

[jira] [Commented] (IMPALA-7933) Consider using read-write locks for partial fetch requests.

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

Quanlong Huang commented on IMPALA-7933:
----------------------------------------

I think this is critical when query concurreny is high. Maybe we need to refactor the table lock before enabling LocalCatalog by default.

cc [~vihangk1]

> Consider using read-write locks for partial fetch requests.
> -----------------------------------------------------------
>
>                 Key: IMPALA-7933
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7933
>             Project: IMPALA
>          Issue Type: Sub-task
>          Components: Catalog
>    Affects Versions: Impala 3.1.0
>            Reporter: Bharath Vissapragada
>            Priority: Critical
>              Labels: catalog-v2
>
> Partial table fetches currently use an exclusive lock. Switch to a read-write lock instead?
> {code}
>      // TODO(todd): consider a read-write lock here.
>       table.getLock().lock();
>       try {
>         return table.getPartialInfo(req);
>       } finally {
>         table.getLock().unlock();
>       }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org