MCPcopy Create free account
hub / github.com/apache/arrow / S3Environment

Method S3Environment

cpp/src/arrow/filesystem/s3_test_util.h:98–98  ·  view source on GitHub ↗

We set this environment variable to speed up tests by ensuring DefaultAWSCredentialsProviderChain does not query (inaccessible) EC2 metadata endpoint. This must be done before spawning any Minio child process to avoid any race condition accessing environment variables.

Source from the content-addressed store, hash-verified

96 // This must be done before spawning any Minio child process to avoid any race
97 // condition accessing environment variables.
98 S3Environment() : ec2_metadata_disabled_guard_("AWS_EC2_METADATA_DISABLED", "true") {}
99
100 void SetUp() override {
101 // Change this to increase logging during tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected