You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2025/01/24 09:33:35 UTC

[I] [Improvement] Shade GCP IAM related class in module `bundles-gcp` to avoid conflicts with gcp-authorization [gravitino]

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

   ### What would you like to be improved?
   
   module `gcp-authorization` uses a high version of GCP dependency compared to module `bundle-gcp`, we need to shade all GCP IAM related classes in module `bundle-gcp` to solve this problem, or issues like 
   
   ```
   Caused by: java.lang.NoSuchMethodError: com.google.api.services.storage.Storage$Buckets$GetIamPolicy.setOptionsRequestedPolicyVersion(Ljava/lang/Integer;)Lcom/google/api/services/storage/Storage$Buckets$GetIamPolicy;
   	at com.google.cloud.storage.spi.v1.HttpStorageRpc.getIamPolicy(HttpStorageRpc.java:1663) ~[?:?]
   	at com.google.cloud.storage.StorageImpl.lambda$getIamPolicy$52(StorageImpl.java:1548) ~[?:?]
   	at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:102) ~[?:?]
   	at com.google.cloud.RetryHelper.run(RetryHelper.java:76) ~[?:?]
   	at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50) ~[?:?]
   	at com.google.cloud.storage.Retrying.run(Retrying.java:65) ~[?:?]
   	at com.google.cloud.storage.StorageImpl.run(StorageImpl.java:1608) ~[?:?]
   	at com.google.cloud.storage.StorageImpl.getIamPolicy(StorageImpl.java:1546) ~[?:?]
   	at org.apache.gravitino.authorization.gcp.iam.GCPIAMAuthorizationPlugin.addUserOrGroupToRole(GCPIAMAuthorizationPlugin.java:818) ~[?:?]
   	at org.apache.gravitino.authorization.gcp.iam.GCPIAMAuthorizationPlugin.lambda$grantSecurableObjectToUserOrGroup$9(GCPIAMAuthorizationPlugin.java:942) ~[?:?]
   	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-32.1.3-jre.jar:?]
   	at org.apache.gravitino.authorization.gcp.iam.GCPIAMAuthorizationPlugin.grantSecurableObjectToUserOrGroup(GCPIAMAuthorizationPlugin.java:935) ~[?:?]
   	at org.apache.gravitino.authorization.gcp.iam.GCPIAMAuthorizationPlugin.onOwnerSet(GCPIAMAuthorizationPlugin.java:1184) ~[?:?]
   	at org.apache.gravitino.authorization.OwnerManager.lambda$setOwner$2(OwnerManager.java:115) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.authorization.AuthorizationUtils.callAuthorizationPluginImpl(AuthorizationUtils.java:369) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.authorization.AuthorizationUtils.callAuthorizationPluginForMetadataObject(AuthorizationUtils.java:194) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.authorization.OwnerManager.setOwner(OwnerManager.java:111) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.hook.CatalogHookDispatcher.createCatalog(CatalogHookDispatcher.java:88) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.catalog.CatalogNormalizeDispatcher.createCatalog(CatalogNormalizeDispatcher.java:88) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.listener.CatalogEventDispatcher.createCatalog(CatalogEventDispatcher.java:131) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.server.web.rest.CatalogOperations.lambda$createCatalog$2(CatalogOperations.java:137) ~[gravitino-server-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.lock.TreeLockUtils.doWithTreeLock(TreeLockUtils.java:49) ~[gravitino-core-0.9.0-incubating-SNAPSHOT.jar:?]
   	at org.apache.gravitino.server.web.rest.CatalogOperations.lambda$createCatalog$3(CatalogOperations.java:133) ~[gravitino-server-0.9.0-incubating-SNAPSHOT.jar:?]
   	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_372]
   
   ```
   
   ### How should we improve?
   
   _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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Shade GCP IAM related class in module `bundles-gcp` to avoid conflicts with gcp-authorization [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 closed issue #6363: [Improvement] Shade GCP IAM related class in module `bundles-gcp` to avoid conflicts with gcp-authorization
URL: https://github.com/apache/gravitino/issues/6363


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Shade GCP IAM related class in module `bundles-gcp` to avoid conflicts with gcp-authorization [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 closed issue #6363: [Improvement] Shade GCP IAM related class in module `bundles-gcp` to avoid conflicts with gcp-authorization
URL: https://github.com/apache/gravitino/issues/6363


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org