From e930bb2d49d37690d0826dc0b7308666488aa600 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..4e401a2f41a7 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 during the startup."); + } }); let heartbeat_task = if let Some(meta_client) = meta_client {