chebbyChefNEQ opened a new issue, #6469:
URL: https://github.com/apache/arrow-rs/issues/6469

   **Describe the bug**
   Cloud based (tested for GCS) store builder blocks on file IO synchronously 
in `.build`. This happens by:
   `object_store` -> `reqwest::ClientBuild::build` -> `rustls::load_native_cert`
   
   **To Reproduce**
   ```rust
   use object_store::gcp::GoogleCloudStorageBuilder;
   
   fn main() {
       for _ in 0..100 {
           let start = std::time::Instant::now();
           let _gcs = 
GoogleCloudStorageBuilder::from_env().with_bucket_name("some-bucket").build().unwrap();
           println!("built in: {:?}", start.elapsed());
       }
   }
   ```
   
   **Expected behavior**
   calling `build` should return a future and not block
   
   **Additional context**
   I'll create a ticket in `reqwest` as well, but maybe we could capture the 
client build in `tokio::spawn_blocking` for the time being?


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to