You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by an...@apache.org on 2016/03/02 02:06:25 UTC
incubator-sentry git commit: 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.
Repository: incubator-sentry
Updated Branches:
refs/heads/master 8669f8ae7 -> 85ca39a33
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.
Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/85ca39a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/85ca39a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/85ca39a3
Branch: refs/heads/master
Commit: 85ca39a33c5dbb2c4627747bc4434b0dcf03087d
Parents: 8669f8a
Author: Anne Yu <an...@apache.org>
Authored: Tue Mar 1 14:18:10 2016 -0800
Committer: Anne Yu <an...@apache.org>
Committed: Tue Mar 1 14:18:10 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/85ca39a3/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/85ca39a3/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());