[#5364] feat(auth-ranger): Throw AuthorizationPluginException in authorization plugin #5297
Triggered via pull request
October 30, 2024 09:53
Status
Cancelled
Total duration
2m 16s
Artifacts
–
spark-integration-test.yml
on: pull_request
changes
6s
Matrix: SparkIT-on-pr
Matrix: SparkIT-on-push
Waiting for pending jobs
Annotations
4 errors and 2 warnings
SparkIT-on-pr (linux/amd64, 17, 2.12, deploy) / JDK17-deploy-Scala2.12:
task ':core:spotlessJavaCheck'#L1
Execution failed for task ':core:spotlessJavaCheck':
The following files had format violations:
src/main/java/org/apache/gravitino/connector/authorization/RoleAuthorizationPlugin.java
@@ -46,8 +46,8 @@
···*
···*·@param·role·The·entity·of·the·Role.
···*·@return·IF·exist·return·true,·else·return·false.
-···*·@throws·AuthorizationPluginException·If·getting·the·Role·encounters·underlying·access·control·system
-···*·····issues.
+···*·@throws·AuthorizationPluginException·If·getting·the·Role·encounters·underlying·access·control
+···*·····system·issues.
···*/
··Boolean·onRoleAcquired(Role·role)·throws·AuthorizationPluginException;
@@ -114,5 +114,6 @@
···*·@return·True·if·the·revoke·was·successfully·removed,·False·if·the·revoke·failed.
···*·@throws·AuthorizationPluginException·If·revoking·roles·from·a·group·encounters·storage·issues.
···*/
-··Boolean·onRevokedRolesFromGroup(List<Role>·roles,·Group·group)·throws·AuthorizationPluginException;
+··Boolean·onRevokedRolesFromGroup(List<Role>·roles,·Group·group)
+······throws·AuthorizationPluginException;
}
src/main/java/org/apache/gravitino/connector/authorization/UserGroupAuthorizationPlugin.java
@@ -58,8 +58,8 @@
···*
···*·@param·user·The·user·entity.
···*·@return·IF·exist·return·true,·else·return·false.
-···*·@throws·AuthorizationPluginException·If·getting·the·User·encounters·underlying·access·control·system
-···*·····issues.
+···*·@throws·AuthorizationPluginException·If·getting·the·User·encounters·underlying·access·control
+···*·····system·issues.
···*/
··Boolean·onUserAcquired(User·user)·throws·AuthorizationPluginException;
@@ -93,8 +93,8 @@
···*
···*·@param·group·The·group·entity.
···*·@return·If·exist·return·true,·else·return·false.
-···*·@throws·AuthorizationPluginException·If·getting·the·Group·encounters·underlying·access·control·system
-···*·····issues.
+···*·@throws·AuthorizationPluginException·If·getting·the·Group·encounters·underlying·access·control
+···*·····system·issues.
···*/
··Boolean·onGroupAcquired(Group·group)·throws·AuthorizationPluginException;
Run './gradlew :core:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111)
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner
|
SparkIT-on-pr (linux/amd64, 17, 2.12, deploy) / JDK17-deploy-Scala2.12
Process completed with exit code 1.
|
SparkIT-on-pr (linux/amd64, 17, 2.12, embedded) / JDK17-embedded-Scala2.12
FailFast: cancelling since parallel instance has failed
|
SparkIT-on-pr (linux/amd64, 17, 2.12, embedded) / JDK17-embedded-Scala2.12
The operation was canceled.
|
changes
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
SparkIT-on-pr (linux/amd64, 17, 2.12, deploy) / JDK17-deploy-Scala2.12
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, docker/setup-qemu-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|