https://slatedb.io logo
Got an interesting error: ``` error loading manif...
# general
a
Got an interesting error:
Copy code
error loading manifest: Object store error: Generic S3 error: Error performing list request: Error performing GET https://s3.us-west-2.amazonaws.com/... in 148.412134ms - HTTP error: error sending request
Usually
object_store
should just retry, but it didn't for some reason. The
HTTP error: error sending request
part is definitely missing some context to diagnose the cause. But assuming proper implementation it should be possible to unwind such errors down to the root cause using
Error::source()
or just
Debug
. For instance, it's possible to go from something like this:
Generic S3 error: Error after 10 retries in 5.723990834s, max_retries:10, retry_timeout:180s...
To this using the
source()
chain:
Copy code
0: Generic S3 error: Error after 10 retries in 5.723990834s, max_retries:10, retry_timeout:180s, source:error sending request for url (http://...)
  1: Error after 10 retries in 5.723990834s, max_retries:10, retry_timeout:180s, source:error sending request for url (http://...)
  2: error sending request for url (http://...)
  3: client error (Connect)
  4: tcp connect error: Host is down (os error 64)
  5: Host is down (os error 64)
As far as I understand,
object_store
and
reqwest
intentionally do not include the detailed root cause information in their error's
Display
to avoid leaking sensitive details (?). My concern is that RFC-0007 "SlateDB Error API" doesn't specify anything about
Error::source()
implementation and/or the underlying error propagation. Also it doesn't specify from where it would obtain the information to pack it into the error message. If it would use just
Display
of the underlying error, the detailed root cause information would be lost.
c
Not sure about the object store issue… perhaps they have a max retry.
Regarding rfc7, I wonder if thiserror helps us here? They have #[source] and #[backtrace] annotations: https://crates.io/crates/thiserror
a
looks like object_store didn't use retry logic for some reason, error messages usually contain something like "Error after 10 retries in 5.723990834s" if retry logic was used
c
Weird.. that sounds line a bug in their code
a
yes, exactly, that's why I was trying to obtain the root cause which is hidden in
object_store::Error
source()
chain, and then realized that after RFC-7 there probably would be no way to access it