snowflake-jdbc
snowflake-jdbc copied to clipboard
Relocate Google Guava classes from com/google/common/util/concurrent/** in FIPS driver
Overview
SNOW-XXXXX
The regular pom.xml was altered to include and relocate Google Guava classes from com/google/common/util/concurrent/** into the final assembly. However, this change was not made to the FIPS pom.xml equivalent, and thus some of the required classes to interact with GCP deployments (for file transfers in particular) are absent and fail to work.
Exception in thread "main" java.lang.NoClassDefFoundError: net/snowflake/client/jdbc/internal/google/common/util/concurrent/FutureCallback
at net.snowflake.client.jdbc.internal.google.cloud.storage.StorageOptions.getUnauthenticatedInstance(StorageOptions.java:163)
at net.snowflake.client.jdbc.cloud.storage.SnowflakeGCSClient.setupGCSClient(SnowflakeGCSClient.java:1083)
at net.snowflake.client.jdbc.cloud.storage.SnowflakeGCSClient.createSnowflakeGCSClient(SnowflakeGCSClient.java:82)
at net.snowflake.client.jdbc.cloud.storage.StorageClientFactory.createGCSClient(StorageClientFactory.java:221)
at net.snowflake.client.jdbc.cloud.storage.StorageClientFactory.createClient(StorageClientFactory.java:78)
at net.snowflake.client.jdbc.SnowflakeFileTransferAgent.
External contributors - please answer these questions before submitting a pull request. Thanks!
Please answer these questions before submitting your pull requests. Thanks!
-
What GitHub issue is this PR adressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
-
Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness of my new code
- [ ] I am adding new logging messages
- [ ] I am modyfying authorization mechanisms
- [ ] I am adding new credentials
- [ ] I am modyfying OCSP code
- [ ] I am adding a new dependency
-
Please describe how your code solves the related issue.
Include the same Google Common (Guava) classes as the regular JDBC driver includes.
Pre-review checklist
- [ ] This change has passed precommit
- [ ] I have reviewed code coverage report for my PR in (Sonarqube)