Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Nov 4, 2023
1 parent d4b9400 commit 06ea35f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion be/src/vec/sink/vtablet_sink_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ Status VOlapTableSinkV2::_cancel(Status status) {
_delta_writer_for_tablet->cancel(status);
_delta_writer_for_tablet.reset();
}
for (const auto& [_, streams] : _streams_for_node) {
for (const auto& stream : *streams) {
RETURN_IF_ERROR(stream->close_wait(1));
}
}
return Status::OK();
}

Expand Down Expand Up @@ -410,6 +415,7 @@ Status VOlapTableSinkV2::close(RuntimeState* state, Status exec_status) {
SCOPED_TIMER(_close_load_timer);
for (const auto& [_, streams] : _streams_for_node) {
for (const auto& stream : *streams) {
// TODO: remaining timeout
RETURN_IF_ERROR(stream->close_wait());
}
}
Expand Down Expand Up @@ -447,7 +453,7 @@ Status VOlapTableSinkV2::close(RuntimeState* state, Status exec_status) {
}

_close_status = status;
static_cast<void>(DataSink::close(state, exec_status));
RETURN_IF_ERROR(DataSink::close(state, exec_status));
return status;
}

Expand Down

0 comments on commit 06ea35f

Please sign in to comment.