[Improvements](status) catch some error status (#25677)
catch some error status
This commit is contained in:
@ -86,7 +86,7 @@ Status PushHandler::process_streaming_ingestion(TabletSharedPtr tablet, const TP
|
||||
Status res = Status::OK();
|
||||
_request = request;
|
||||
|
||||
static_cast<void>(DescriptorTbl::create(&_pool, _request.desc_tbl, &_desc_tbl));
|
||||
RETURN_IF_ERROR(DescriptorTbl::create(&_pool, _request.desc_tbl, &_desc_tbl));
|
||||
|
||||
res = _do_streaming_ingestion(tablet, request, push_type, tablet_info_vec);
|
||||
|
||||
@ -95,7 +95,7 @@ Status PushHandler::process_streaming_ingestion(TabletSharedPtr tablet, const TP
|
||||
TTabletInfo tablet_info;
|
||||
tablet_info.tablet_id = tablet->tablet_id();
|
||||
tablet_info.schema_hash = tablet->schema_hash();
|
||||
static_cast<void>(
|
||||
RETURN_IF_ERROR(
|
||||
StorageEngine::instance()->tablet_manager()->report_tablet_info(&tablet_info));
|
||||
tablet_info_vec->push_back(tablet_info);
|
||||
}
|
||||
@ -317,7 +317,7 @@ Status PushHandler::_convert_v2(TabletSharedPtr cur_tablet, RowsetSharedPtr* cur
|
||||
}
|
||||
|
||||
reader->print_profile();
|
||||
static_cast<void>(reader->close());
|
||||
RETURN_IF_ERROR(reader->close());
|
||||
}
|
||||
|
||||
if (!res.ok()) {
|
||||
@ -664,8 +664,8 @@ Status PushBrokerReader::_get_next_reader() {
|
||||
std::unordered_map<std::string, std::tuple<std::string, const SlotDescriptor*>>
|
||||
partition_columns;
|
||||
std::unordered_map<std::string, vectorized::VExprContextSPtr> missing_columns;
|
||||
static_cast<void>(_cur_reader->get_columns(&_name_to_col_type, &_missing_cols));
|
||||
static_cast<void>(_cur_reader->set_fill_columns(partition_columns, missing_columns));
|
||||
RETURN_IF_ERROR(_cur_reader->get_columns(&_name_to_col_type, &_missing_cols));
|
||||
RETURN_IF_ERROR(_cur_reader->set_fill_columns(partition_columns, missing_columns));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user