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 "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/11/11 05:23:00 UTC

[jira] [Commented] (IMPALA-7835) Creating a role with the same name as the user name with object ownership enabled can cause INVALIDATE METADATA to hang

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

ASF subversion and git services commented on IMPALA-7835:
---------------------------------------------------------

Commit 58a469ca24e0225ce2274af779fbbd344595c5cc in impala's branch refs/heads/master from [~fredyw]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=58a469c ]

IMPALA-7835: Role and user catalog objects with the same name can cause INVALIDATE METADATA to hang

Before this patch, enabling object ownership and running INVALIDATE
METADATA for the role and user catalog objects with the same principal
name could cause INVALIDATE METADATA to hang because a principal name
without a type is not guaranteed to be unique. This causes the catalog
delta logic to assume principal catalog objects with the same name but
with different types are considered the same causing a catalog version
inconsistency. This patch makes the principal object key to be unique by
appending the principal type information.

Testing:
- Added E2E authorization test
- Ran all FE tests
- Ran all E2E authorization tests

Change-Id: I516cf72e69e142a1349950cfca91f035c1ed445f
Reviewed-on: http://gerrit.cloudera.org:8080/11910
Reviewed-by: Vuk Ercegovac <ve...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Creating a role with the same name as the user name with object ownership enabled can cause INVALIDATE METADATA to hang
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: IMPALA-7835
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7835
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Catalog
>    Affects Versions: Impala 3.1.0
>            Reporter: Fredy Wijaya
>            Assignee: Fredy Wijaya
>            Priority: Critical
>             Fix For: Impala 3.1.0
>
>
> Start Impala with object ownership enabled.
> {noformat}
> [localhost:21000] default> create database foo;
> [localhost:21000] default> create role impdev;
> [localhost:21000] default> grant all on server to role impdev;
> [localhost:21000] default> grant role impdev to group impdev;
> [localhost:21000] default> invalidate metadata; -- this will hang
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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