diff --git a/src/datanode/src/datanode.rs b/src/datanode/src/datanode.rs index c55145e5269c..d164d085a433 100644 --- a/src/datanode/src/datanode.rs +++ b/src/datanode/src/datanode.rs @@ -238,13 +238,16 @@ impl DatanodeBuilder { // Opens regions in background. common_runtime::spawn_bg(async move { - open_all_regions( + if let Err(err) = open_all_regions( ®ion_server_moved, kv_backend, !controlled_by_metasrv, node_id, ) .await + { + error!(err; "Failed to opening regions"); + } }); let heartbeat_task = if let Some(meta_client) = meta_client {