Repository: incubator-sentry Updated Branches: refs/heads/master 85ca39a33 -> bbef55f96 (forced update)
SENTRY-1109: Fix mvn clean install fails with PMD validation: Unnecessary use of fully qualified name 'org.apache.hadoop.hive.metastore.api.Partition' due to existing import 'org.apache.hadoop.hive.metastore.api.Partition. (Dapeng Sun, reviewed by Sravya Tirukkovalur and Anne Yu) Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/bbef55f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/bbef55f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/bbef55f9 Branch: refs/heads/master Commit: bbef55f965a2c8d10234c1d75ca2aa9229af5ca1 Parents: 8669f8a Author: Anne Yu <[email protected]> Authored: Tue Mar 1 14:18:10 2016 -0800 Committer: Anne Yu <[email protected]> Committed: Tue Mar 1 17:35:54 2016 -0800 ---------------------------------------------------------------------- pom.xml | 1 + .../org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/bbef55f9/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 2f855fb..151eefd 100644 --- a/pom.xml +++ b/pom.xml @@ -758,6 +758,7 @@ limitations under the License. <artifactId>maven-surefire-plugin</artifactId> <version>2.18</version> <configuration> + <rerunFailingTestsCount>3</rerunFailingTestsCount> <environmentVariables> <HADOOP_CLIENT_OPTS>-Xmx1500m -Dhive.log.dir=./target/</HADOOP_CLIENT_OPTS> </environmentVariables> http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/bbef55f9/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java ---------------------------------------------------------------------- diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java index cea8e13..14c31a4 100644 --- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java +++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/MetastoreAuthzBinding.java @@ -300,7 +300,7 @@ public class MetastoreAuthzBinding extends MetaStorePreEventListener { private void authorizeAddPartition(PreAddPartitionEvent context) throws InvalidOperationException, MetaException, NoSuchObjectException { - for (org.apache.hadoop.hive.metastore.api.Partition mapiPart : context.getPartitions()) { + for (Partition mapiPart : context.getPartitions()) { HierarcyBuilder inputBuilder = new HierarcyBuilder(); inputBuilder.addTableToOutput(getAuthServer(), mapiPart .getDbName(), mapiPart.getTableName());
