[Enhancement](group commit) Add retry message for group commit load while schema changing (#30391)

This commit is contained in:
abmdocrt
2024-02-06 10:09:20 +08:00
committed by yiguolei
parent 4701dd49c3
commit 847db2c015

View File

@ -206,7 +206,9 @@ Status GroupCommitTable::get_first_block_load_queue(
}
}
if (!is_schema_version_match) {
return Status::DataQualityError<false>("schema version not match");
return Status::DataQualityError<false>(
"schema version not match, maybe a schema change is in process. Please "
"retry this load manually.");
}
if (!_need_plan_fragment) {
_need_plan_fragment = true;
@ -222,7 +224,9 @@ Status GroupCommitTable::get_first_block_load_queue(
return Status::OK();
}
} else if (base_schema_version < load_block_queue->schema_version) {
return Status::DataQualityError<false>("schema version not match");
return Status::DataQualityError<false>(
"schema version not match, maybe a schema change is in process. Please "
"retry this load manually.");
}
load_block_queue.reset();
}