[
https://issues.apache.org/jira/browse/SENTRY-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864348#comment-16864348
]
Hadoop QA commented on SENTRY-2239:
-----------------------------------
Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12924413/SENTRY-2239.001.patch
against master.
{color:red}Overall:{color} -1 due to an error
{color:red}ERROR:{color} failed to apply patch (exit code 1):
error:
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/FullUpdateModifier.java:
does not exist in index
error:
a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java:
does not exist in index
error:
a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/service/thrift/TestFullUpdateModifier.java:
does not exist in index
error:
a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbPrivilegeCleanupOnDrop.java:
does not exist in index
error:
sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/FullUpdateModifier.java:
does not exist in index
error:
sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java:
does not exist in index
error:
sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/service/thrift/TestFullUpdateModifier.java:
does not exist in index
error:
sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/FullUpdateModifier.java:
does not exist in index
error:
sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java:
does not exist in index
error:
sentry-provider-db/src/test/java/org/apache/sentry/service/thrift/TestFullUpdateModifier.java:
does not exist in index
error:
sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbPrivilegeCleanupOnDrop.java:
does not exist in index
The patch does not appear to apply with p0, p1, or p2
Console output:
https://builds.apache.org/job/PreCommit-SENTRY-Build/4420/console
This message is automatically generated.
> Table rename cross database should update Full snapshot correctly
> ------------------------------------------------------------------
>
> Key: SENTRY-2239
> URL: https://issues.apache.org/jira/browse/SENTRY-2239
> Project: Sentry
> Issue Type: Bug
> Reporter: Na Li
> Priority: Major
> Attachments: SENTRY-2239.001.patch
>
>
> This only happens if there are "alter table rename" during taking full
> snapshot.
> When alter table rename changes DB name of the table, FullUpdateModifier
> changes all tables' DB name, not just the table whose name is changed. This
> will change the table names incorrectly.
> For example, when user changes table name from "db1.table1" to table name to
> "db2.table2" and in db1 there are two other tables: db1.table3, db1.table4,
> FullUpdateModifier changes the tables from "db1.table1, db1.table3,
> db1.table4" to "db2.table2, db2.table3, db3.table4".
> The desired behavior is changes the tables from "db1.table1" to "db2.table2".
> and "db1.table3, db1.table4" remains the same.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)