SwishSwushPow opened a new issue, #820:
URL: https://github.com/apache/arrow-rs-object-store/issues/820

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   I have a cache  implementation that stores cached files on an S3 instance 
when users request some data. I also have a built-in integrity check for the 
cache making sure that all the files listed in the caches database are actually 
present and accessible. I now ran into an issue where my integrity check 
returned all cached entities as "corrupted" because none of the files were 
accessible. The culprit here was that the S3 instance was not reachable because 
of some other reason, but not that the files weren't there.
   
   **Describe the solution you'd like**
   
   In the situation described above I would like to distinguish between "we can 
connect to the S3 instance, but the file is not there" vs "we cannot connect to 
the S3 instance". This extra bit of information would be really helpful.
   
   **Describe alternatives you've considered**
   
   I thought about digging into the generic error type that is currently 
returned and maybe matching on a specific error message or downcast to a 
certain error type, but that might be unstable if the message or the exact type 
change in the future. I think a dedicated `UnableToConnect` type or something 
similar would be a cleaner solution.
   
   I have only looked briefly into the codebase, but I might be able to help 
with the implementation of this if desired.


-- 
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]

Reply via email to