Skip to content

Commit

Permalink
Don't try to initialize expunged databases
Browse files Browse the repository at this point in the history
  • Loading branch information
plotnick committed Nov 15, 2024
1 parent c6e98a5 commit fe5e6dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nexus/reconfigurator/execution/src/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ use futures::future::Either;
use futures::stream::FuturesUnordered;
use futures::stream::StreamExt;
use nexus_db_queries::context::OpContext;
use nexus_sled_agent_shared::inventory::OmicronZoneType;
use nexus_types::deployment::BlueprintZoneFilter;
use nexus_types::deployment::BlueprintZonesConfig;
use nexus_types::deployment::ClickhouseClusterConfig;
use omicron_common::address::CLICKHOUSE_ADMIN_PORT;
Expand Down Expand Up @@ -168,7 +170,11 @@ pub(crate) async fn deploy_single_node(
if let Some(zone) = zones
.values()
.flat_map(|zones| {
zones.zones.iter().find(|zone| zone.zone_type.is_clickhouse())
zones
.to_omicron_zones_config(BlueprintZoneFilter::ShouldBeRunning)
.zones
.into_iter()
.find(|zone| matches!(zone.zone_type, OmicronZoneType::Clickhouse { .. }))
})
.next()
{
Expand Down

0 comments on commit fe5e6dc

Please sign in to comment.