Skip to content

Commit

Permalink
partially integrate Datashard: DISK_SPACE_EXHAUSTED error (ydb-platfo…
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny committed Jan 5, 2025
1 parent 0a733ba commit b2a7f87
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions ydb/core/kqp/executer_actor/kqp_data_executer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ class TKqpDataExecuter: public TKqpExecuterBase<TKqpDataExecuter, EExecType::Dat
case NKikimrDataEvents::TEvWriteResult::STATUS_ABORTED: {
return ReplyErrorAndDie(Ydb::StatusIds::ABORTED, issues);
}
case NKikimrDataEvents::TEvWriteResult::STATUS_DISK_SPACE_EXHAUSTED:
case NKikimrDataEvents::TEvWriteResult::STATUS_INTERNAL_ERROR: {
return ReplyErrorAndDie(Ydb::StatusIds::INTERNAL_ERROR, issues);
}
Expand Down
14 changes: 14 additions & 0 deletions ydb/core/kqp/runtime/kqp_write_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,20 @@ class TKqpDirectWriteActor : public TActorBootstrapped<TKqpDirectWriteActor>, pu
}
return;
}
case NKikimrDataEvents::TEvWriteResult::STATUS_DISK_SPACE_EXHAUSTED: {
CA_LOG_E("Got DISK_SPACE_EXHAUSTED for table `"
<< SchemeEntry->TableId.PathId.ToString() << "`."
<< " ShardID=" << ev->Get()->Record.GetOrigin() << ","
<< " Sink=" << this->SelfId() << "."
<< getIssues().ToOneLineString());

RuntimeError(
TStringBuilder() << "Got DISK_SPACE_EXHAUSTED for table `"
<< SchemeEntry->TableId.PathId.ToString() << "`.",
NYql::NDqProto::StatusIds::PRECONDITION_FAILED,
getIssues());
return;
}
case NKikimrDataEvents::TEvWriteResult::STATUS_OVERLOADED: {
CA_LOG_W("Got OVERLOADED for table `"
<< SchemeEntry->TableId.PathId.ToString() << "`."
Expand Down
1 change: 1 addition & 0 deletions ydb/core/protos/data_events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ message TEvWriteResult {
STATUS_BAD_REQUEST = 7;
STATUS_SCHEME_CHANGED = 8;
STATUS_LOCKS_BROKEN = 9;
STATUS_DISK_SPACE_EXHAUSTED = 10;
}

// Status
Expand Down

0 comments on commit b2a7f87

Please sign in to comment.