sergey-safarov opened a new issue, #655:
URL: https://github.com/apache/arrow-rs-object-store/issues/655
**Describe the bug**
I use crate in multi-threaded app (`tokio`). To avoid Token refresh on each
thread I use shared `object_store::ObjectStore` instance.
```rust
use object_store::{ObjectStore, PutOptions, PutPayload};
#[derive(Clone)]
pub struct ObjectStoreClient {
store: Arc<dyn ObjectStore + Send + Sync>,
}
```
During program execution I sea error `ExpiredToken: The provided token has
expired` which received from AWS API.
I checked crate source code and found `TokenCache` struct and test.
For now, I do not have idea how happens expired token and my request to
guide how to troubleshoot issue.
**To Reproduce**
Do not know now.
**Expected behavior**
Cloud storage operation functions should make sure token is not expired.
If required refresh token.
**Additional context**
`ObjectStore` instance shared between `tokio` threads.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]