fix execute dist plan report error when truncate table concurrently.

This commit is contained in:
sdc
2024-03-01 04:44:45 +00:00
committed by ob-robot
parent fbfce65499
commit 21caebcd16
3 changed files with 34 additions and 11 deletions

View File

@ -881,6 +881,7 @@ int ObGranuleIteratorOp::do_join_filter_partition_pruning(
if (OB_FAIL(try_build_tablet2part_id_map())) {
LOG_WARN("fail to build tablet2part id map", K(ret));
} else if (OB_FAIL(tablet2part_id_map_.get_refactored(tablet_id, part_id))) {
ret = OB_HASH_NOT_EXIST == ret ? OB_SCHEMA_ERROR : ret;
LOG_WARN("fail to get refactored part id", K(ret), K(tablet_id), K(part_id));
} else {
tablet_id = part_id;

View File

@ -1116,7 +1116,8 @@ int ObAffinitizeGranuleSplitter::split_tasks_affinity(ObExecContext &ctx,
if (is_virtual_table(table_schema->get_table_id())) {
tablet_idx = tablet_loc.tablet_id_.id() + 1;
} else if (OB_FAIL(idx_map.get_refactored(tablet_loc.tablet_id_.id(), tablet_idx))) {
LOG_WARN("fail to get tablet idx", K(ret));
ret = OB_HASH_NOT_EXIST == ret ? OB_SCHEMA_ERROR : ret;
LOG_WARN("fail to get tablet idx", K(ret), K(tablet_loc), KPC(table_schema));
}
}
if (OB_FAIL(ret)) {