From e49d1220b54a11c042c56c4c61ba69f623e2d346 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 14 Dec 2023 06:20:21 +0000 Subject: [PATCH] chore: apply suggestions from CR --- src/datanode/src/datanode.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {