diff --git a/src/meta/src/manager/metadata.rs b/src/meta/src/manager/metadata.rs index c1b02b0e7244..ec0864a87a66 100644 --- a/src/meta/src/manager/metadata.rs +++ b/src/meta/src/manager/metadata.rs @@ -356,6 +356,16 @@ impl MetadataManager { } } + pub async fn list_active_serving_compute_nodes(&self) -> MetaResult> { + match self { + MetadataManager::V1(mgr) => Ok(mgr + .cluster_manager + .list_active_serving_compute_nodes() + .await), + MetadataManager::V2(mgr) => mgr.cluster_controller.list_active_serving_workers().await, + } + } + pub async fn list_background_creating_jobs(&self) -> MetaResult> { match self { MetadataManager::V1(mgr) => { diff --git a/src/meta/src/stream/scale.rs b/src/meta/src/stream/scale.rs index 3a646408c060..3ddec2a588d8 100644 --- a/src/meta/src/stream/scale.rs +++ b/src/meta/src/stream/scale.rs @@ -1896,7 +1896,7 @@ impl ScaleController { if !reschedules.is_empty() { let workers = self .metadata_manager - .list_active_streaming_compute_nodes() + .list_active_serving_compute_nodes() .await?; let streaming_parallelisms = self .metadata_manager