danhuawang opened a new issue, #5126:
URL: https://github.com/apache/gravitino/issues/5126

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   ```
   RangerHiveE2EIT > testAllowUseSchemaPrivilege() FAILED
   ```
   
   ### Error message and/or stacktrace
   
   ```
   > Task :authorizations:authorization-ranger:test
   
   RangerHiveE2EIT > testAllowUseSchemaPrivilege() FAILED
       java.lang.RuntimeException: org.apache.ranger.RangerServiceException: 
Ranger API org.apache.ranger.RangerClient$API@41018b17 failed: statusCode=400, 
status=Bad Request, response:{"statusCode":1,"msgDesc":"(0) Validation failure: 
error code[3006], reason[Another policy already exists for this name: 
policy-id=[15], service=[hiveDev]], field[policy name], subfield[null], 
type[semantically incorrect] (1) Validation failure: error code[3010], 
reason[Another policy already exists for matching resource: 
policy-name=[rangerhivee2eit_catalog_5d6abec7.rangerhivee2eit_schema_1509b955], 
service=[hiveDev]], field[resources], subfield[null], type[semantically 
incorrect] "}
           at 
org.apache.gravitino.authorization.ranger.RangerAuthorizationPlugin.doAddSecurableObject(RangerAuthorizationPlugin.java:455)
           at 
org.apache.gravitino.authorization.ranger.RangerAuthorizationPlugin.onRoleUpdated(RangerAuthorizationPlugin.java:152)
           at 
org.apache.gravitino.authorization.ranger.RangerAuthorizationPlugin.onRoleCreated(RangerAuthorizationPlugin.java:116)
           at 
org.apache.gravitino.authorization.ranger.integration.test.RangerHiveE2EIT.testAllowUseSchemaPrivilege(RangerHiveE2EIT.java:236)
   
           Caused by:
           org.apache.ranger.RangerServiceException: Ranger API 
org.apache.ranger.RangerClient$API@41018b17 failed: statusCode=400, status=Bad 
Request, response:{"statusCode":1,"msgDesc":"(0) Validation failure: error 
code[3006], reason[Another policy already exists for this name: policy-id=[15], 
service=[hiveDev]], field[policy name], subfield[null], type[semantically 
incorrect] (1) Validation failure: error code[3010], reason[Another policy 
already exists for matching resource: 
policy-name=[rangerhivee2eit_catalog_5d6abec7.rangerhivee2eit_schema_1509b955], 
service=[hiveDev]], field[resources], subfield[null], type[semantically 
incorrect] "}
               at 
app//org.apache.ranger.RangerClient.responseHandler(RangerClient.java:521)
               at 
app//org.apache.ranger.RangerClient.callAPI(RangerClient.java:563)
               at 
app//org.apache.ranger.RangerClient.createPolicy(RangerClient.java:256)
               at 
app//org.apache.gravitino.authorization.ranger.RangerAuthorizationPlugin.doAddSecurableObject(RangerAuthorizationPlugin.java:450)
               ... 3 more
   
   18 tests completed, 1 failed
   :authorizations:authorization-ranger:test failure marker
   
   > Task :authorizations:authorization-ranger:test FAILED
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 9.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   For more on this, please refer to 
https://docs.gradle.org/8.2/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.
   37 actionable tasks: 3 executed, 34 up-to-date
   Error: Process completed with exit code 1.
   
   ```
   
   ### How to reproduce
   
   It can be reproduced by Cron Integration Test 20241013
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to