chore(ingester2): Log well-known query error at dbg

When the ingester handles a query for a table/namespace
that has been persisted and the data is not in the
buffer it logs at error level that the table/namespace
could not be found. This is a valid state and an
expected error (the data can be queried from object
storage), so we can make this less noisy.
pull/24376/head
Fraser Savage 2023-03-15 15:41:34 +00:00
parent a01abb6f69
commit 882d087dd5
No known key found for this signature in database
GPG Key ID: DE47C33CE8C5C446
1 changed files with 7 additions and 7 deletions

View File

@ -187,13 +187,13 @@ where
.await
{
Ok(v) => v,
Err(e) => {
error!(
error=%e,
%namespace_id,
%table_id,
"query error"
);
Err(e @ QueryError::TableNotFound(_, _) | e @ QueryError::NamespaceNotFound(_)) => {
debug!(
error=%e,
%namespace_id,
%table_id,
"query error, no buffered data found");
return Err(e)?;
}
};