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

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

Reply via email to