[ https://issues.apache.org/jira/browse/SENTRY-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503581#comment-16503581 ]
Na Li commented on SENTRY-2245: ------------------------------- The failure for patch 006 seems not caused by code change, but by "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project sentry-tests-hive: There are test failures." reattach the patch again to run test https://builds.apache.org/job/PreCommit-SENTRY-Build/3859/artifact/test-output/test.txt {code} [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 1 licence. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Sentry ............................................ SUCCESS [2.627s] [INFO] Sentry Core ....................................... SUCCESS [0.169s] [INFO] Sentry Core Common ................................ SUCCESS [6.255s] [INFO] Sentry Core Model DB .............................. SUCCESS [1.911s] [INFO] Sentry Core Model Indexer ......................... SUCCESS [1.126s] [INFO] Sentry Core Model Solr ............................ SUCCESS [2.213s] [INFO] Sentry Core Model Sqoop ........................... SUCCESS [1.233s] [INFO] Sentry Core Model Kafka ........................... SUCCESS [1.121s] [INFO] Sentry Policies ................................... SUCCESS [0.085s] [INFO] Sentry Policy Common .............................. SUCCESS [1.446s] [INFO] Sentry Providers .................................. SUCCESS [0.155s] [INFO] Sentry Provider Common ............................ SUCCESS [1.548s] [INFO] Sentry Provider File .............................. SUCCESS [1.774s] [INFO] Sentry Policy Engine .............................. SUCCESS [0.299s] [INFO] Sentry Bindings ................................... SUCCESS [0.118s] [INFO] Sentry Hive Binding Configuration ................. SUCCESS [2.701s] [INFO] Hive follower for Sentry .......................... SUCCESS [2.991s] [INFO] Sentry HDFS ....................................... SUCCESS [0.080s] [INFO] Sentry HDFS Common ................................ SUCCESS [22.078s] [INFO] Sentry Service .................................... SUCCESS [0.103s] [INFO] Sentry Service API ................................ SUCCESS [1.651s] [INFO] Sentry Service Client ............................. SUCCESS [0.545s] [INFO] Sentry Provider DB ................................ SUCCESS [6.681s] [INFO] Sentry Binding for Kafka .......................... SUCCESS [12.247s] [INFO] Sentry Provider Cache ............................. SUCCESS [1.584s] [INFO] Sentry Hive Binding Common ........................ SUCCESS [1.897s] [INFO] Sentry Binding for Solr ........................... SUCCESS [17.711s] [INFO] Sentry Binding for Sqoop .......................... SUCCESS [10.208s] [INFO] Sentry Binding for HBase Indexer .................. SUCCESS [4.103s] [INFO] Sentry Binding for Hive ........................... SUCCESS [25.373s] [INFO] Sentry Solr ....................................... SUCCESS [0.074s] [INFO] Solr Sentry handler ............................... SUCCESS [2.814s] [INFO] Sentry Service Server ............................. SUCCESS [10:21.329s] [INFO] Sentry Tests ...................................... SUCCESS [0.118s] [INFO] Sentry Solr Tests ................................. SUCCESS [2:16.965s] [INFO] Sentry Sqoop Tests ................................ SUCCESS [2:34.408s] [INFO] Sentry Kafka Tests ................................ SUCCESS [3:03.556s] [INFO] Sentry HDFS Service ............................... SUCCESS [6:56.989s] [INFO] Sentry HDFS Namenode Plugin ....................... SUCCESS [8.056s] [INFO] Sentry Hive Tests ................................. FAILURE [1:29:06.506s] [INFO] Sentry HDFS Dist .................................. SUCCESS [2.512s] [INFO] sentry-tools ...................................... SUCCESS [2:35.910s] [INFO] Sentry Distribution ............................... SUCCESS [39.906s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:00:02.134s [INFO] Finished at: Wed Jun 06 00:33:49 UTC 2018 [INFO] Final Memory: 221M/1695M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project sentry-tests-hive: There are test failures. [ERROR] [ERROR] Please refer to /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive && /usr/local/asfpackages/java/jdk1.8.0_172/jre/bin/java -Xms512m -Xmx2g -XX:MaxPermSize=256m -jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire/surefirebooter7915016577859157582.jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire 2018-06-05T22-33-55_744-jvmRun1 surefire8974837349140026055tmp surefire_1031982754061526616388tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 255 [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive && /usr/local/asfpackages/java/jdk1.8.0_172/jre/bin/java -Xms512m -Xmx2g -XX:MaxPermSize=256m -jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire/surefirebooter7915016577859157582.jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire 2018-06-05T22-33-55_744-jvmRun1 surefire8974837349140026055tmp surefire_1031982754061526616388tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 255 [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:496) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:443) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:295) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1124) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:954) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:832) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:498) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive && /usr/local/asfpackages/java/jdk1.8.0_172/jre/bin/java -Xms512m -Xmx2g -XX:MaxPermSize=256m -jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire/surefirebooter7915016577859157582.jar /home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build/sentry-tests/sentry-tests-hive/target/surefire 2018-06-05T22-33-55_744-jvmRun1 surefire8974837349140026055tmp surefire_1031982754061526616388tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 255 [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:686) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:535) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$700(ForkStarter.java:116) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:431) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:408) [ERROR] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [ERROR] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [ERROR] at java.lang.Thread.run(Thread.java:748) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sentry-tests-hive {code} > Remove privileges that do not associate with a role or a user > ------------------------------------------------------------- > > Key: SENTRY-2245 > URL: https://issues.apache.org/jira/browse/SENTRY-2245 > Project: Sentry > Issue Type: Sub-task > Reporter: Na Li > Assignee: Na Li > Priority: Major > Attachments: SENTRY-2245.003.patch, SENTRY-2245.004.patch, > SENTRY-2245.005.patch, SENTRY-2245.006.patch, SENTRY-2245.006.patch > > > After a privilege is detached from a role or a user, we should check if this > privilege is not associated with any role nor any user. Then, we should > remove this privilege from DB. Otherwise, the orphan privileges will grow > overtime. > One example place is in alterSentryRoleGrantPrivilegeCore. After removing > role from mInsert, this privilege may not be associated with any role or > user, and should be removed. -- This message was sent by Atlassian JIRA (v7.6.3#76005)