Skip to content

Commit

Permalink
feat: add logs for update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Jan 3, 2024
1 parent 6f64ffe commit 62e79a6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

use common_meta::key::datanode_table::RegionInfo;
use common_meta::rpc::router::RegionRoute;
use common_meta::rpc::router::{region_distribution, RegionRoute};
use common_telemetry::{info, warn};
use snafu::{ensure, OptionExt, ResultExt};

Expand Down Expand Up @@ -144,6 +144,12 @@ impl UpdateMetadata {
} = datanode_table_value.region_info.clone();
let table_route_value = ctx.get_table_route_value().await?;

let region_distribution =
region_distribution(&region_routes).context(error::TableMetadataManagerSnafu)?;
info!(
"Trying to update region routes to {region_distribution:?} for table: {}",
region_id.table_id()
);
if let Err(err) = table_metadata_manager
.update_table_route(
region_id.table_id(),
Expand Down

0 comments on commit 62e79a6

Please sign in to comment.