-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- GCE
- artifact version(s): google-cloud-storage:2.32.1, gax 2.41.0
Issue
Run the following code in GCE with DirectPath enabled causes the following warning to be logged.
InstantiatingGrpcChannelProvider logDirectPathMisconfig
WARNING: DirectPath is misconfigured. Please make sure the credential is an instance of com.google.auth.oauth2.ComputeEngineCredentials .
Code example
RetrySettings retrySettings = StorageOptions.getDefaultRetrySettings().toBuilder().build();
StorageOptions retryStorageOptions =
StorageOptions.grpc().setRetrySettings(retrySettings).setAttemptDirectPath(true).build();
Storage storageClient = retryStorageOptions.getService();
Metadata
Metadata
Assignees
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.