diff --git a/pageserver/src/page_service.rs b/pageserver/src/page_service.rs index 291490d016..9b4b333a92 100644 --- a/pageserver/src/page_service.rs +++ b/pageserver/src/page_service.rs @@ -1500,7 +1500,8 @@ impl From for QueryError { GetActiveTenantError::WaitForActiveTimeout { .. } => QueryError::Disconnected( ConnectionError::Io(io::Error::new(io::ErrorKind::TimedOut, e.to_string())), ), - GetActiveTenantError::WillNotBecomeActive(TenantState::Stopping { .. }) => { + GetActiveTenantError::Cancelled + | GetActiveTenantError::WillNotBecomeActive(TenantState::Stopping { .. }) => { QueryError::Shutdown } e => QueryError::Other(anyhow::anyhow!(e)),