hacky way to make tests pass

This commit is contained in:
John Spray
2024-10-04 09:56:56 +00:00
parent efc3f1cfe5
commit 62aa8f2ba2
+4 -1
View File
@@ -833,10 +833,13 @@ impl TenantShard {
continue;
};
// TODO: make this AZ aware: secondary should be chosen "As if I am an attachment, but
// in a different AZ to my actual preferred AZ"
// Let the scheduler suggest a node, where it would put us if we were scheduling afresh
// This implicitly limits the choice to nodes that are available, and prefers nodes
// with lower utilization.
let Ok(candidate_node) = scheduler.schedule_shard::<SecondaryShardTag>(
let Ok(candidate_node) = scheduler.schedule_shard::<AttachedShardTag>(
&self.intent.all_pageservers(),
&self.preferred_az_id,
schedule_context,