pageserver: log details on shard routing error

This commit is contained in:
John Spray
2023-12-22 11:52:09 +00:00
parent 34ebfbdd6f
commit 73a944205b

View File

@@ -857,6 +857,8 @@ impl PageServerHandler {
// informed yet.
//
// https://github.com/neondatabase/neon/issues/6038
tracing::warn!("Page request routed to wrong shard: my identity {:?}, should go to shard {}, key {}",
timeline.get_shard_identity(), timeline.get_shard_identity().get_shard_number(&key).0, key);
return Err(anyhow::anyhow!("Request routed to wrong shard"));
}
Err(e) => return Err(e.into()),