You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "calavera (via GitHub)" <gi...@apache.org> on 2025/08/23 18:49:38 UTC
[I] Impossible to downcast an Error::Generic into a RetryError [arrow-rs-object-store]
calavera opened a new issue, #469:
URL: https://github.com/apache/arrow-rs-object-store/issues/469
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
If there is some kind of network error in idempotent requests, object-store will try to retry. If retries don't succeed, object-store returns an `Error::Generic`, which `source` is a `RetryError`.
It's impossible to downcast the `source` error into a `RetryError` because the `RetryError` type is private.
**To Reproduce**
<!--
Steps to reproduce the behavior:
-->
This code does not compile because `RetryError` is not public:
```rust
match error {
Error::Generic { source, .. } if let Some(source) = source.downcast_ref::<RetryError>() => source,
_ => error
```
**Expected behavior**
<!--
A clear and concise description of what you expected to happen.
-->
I'd expect to be able to access the data into the RetryError which ultimately has information about the real problem that cause a request to fail.
**Additional context**
<!--
Add any other context about the problem here.
-->
--
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-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Impossible to downcast an Error::Generic into a RetryError [arrow-rs-object-store]
Posted by "calavera (via GitHub)" <gi...@apache.org>.
calavera closed issue #469: Impossible to downcast an Error::Generic into a RetryError
URL: https://github.com/apache/arrow-rs-object-store/issues/469
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Impossible to downcast an Error::Generic into a RetryError [arrow-rs-object-store]
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #469:
URL: https://github.com/apache/arrow-rs-object-store/issues/469#issuecomment-3217270106
Retry error is intentionally crate private as exposing it would expose internal details about the retry machinery that have changed in the not so distant past.
That being said, RetryError does implement source, so you should be able to just walk the chain down to the level of error you are looking to handle
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org