Skip to content

Commit 405bf7d

Browse files
committed
[cloud](status) Report error once tablets cannot be read (apache#56751)
1 parent c732673 commit 405bf7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/pipeline/exec/olap_scan_operator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ Status OlapScanLocalState::prepare(RuntimeState* state) {
536536
// Remote tablet still in-flight.
537537
return Status::OK();
538538
}
539-
DCHECK(_cloud_tablet_future.valid() && _cloud_tablet_future.get().ok());
540539
COUNTER_UPDATE(_sync_rowset_timer, _sync_cloud_tablets_watcher.elapsed_time());
540+
RETURN_IF_ERROR(_cloud_tablet_future.get());
541541
auto total_rowsets = std::accumulate(
542542
_tablets.cbegin(), _tablets.cend(), 0LL,
543543
[](long long acc, const auto& tabletWithVersion) {

0 commit comments

Comments
 (0)