From 627c34f90a2ccce9bdb1c8097323336cf08da72e Mon Sep 17 00:00:00 2001 From: WenyXu Date: Mon, 18 Sep 2023 11:16:47 +0000 Subject: [PATCH] chore: apply suggestions from CR --- src/mito2/src/worker/handle_alter.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mito2/src/worker/handle_alter.rs b/src/mito2/src/worker/handle_alter.rs index 94464685004c..705a46e9f992 100644 --- a/src/mito2/src/worker/handle_alter.rs +++ b/src/mito2/src/worker/handle_alter.rs @@ -17,7 +17,7 @@ use std::sync::Arc; use common_query::Output; -use common_telemetry::{error, info}; +use common_telemetry::{error, info, warn}; use snafu::ResultExt; use store_api::metadata::{RegionMetadata, RegionMetadataBuilder, RegionMetadataRef}; use store_api::region_request::RegionAlterRequest; @@ -48,6 +48,10 @@ impl RegionWorkerLoop { // Get the version before alter. let version = region.version(); if version.metadata.schema_version >= request.schema_version { + warn!( + "region schema version {} greater than request schema version {}", + version.metadata.schema_version, request.schema_version + ); // Returns if it altered. sender.send(Ok(Output::AffectedRows(0))); return;