Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ydb/core/kqp/executer_actor/kqp_data_executer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,13 @@ class TKqpDataExecuter : public TKqpExecuterBase<TKqpDataExecuter, EExecType::Da
}

void HandleFinalize(TEvents::TEvUndelivered::TPtr&) {
auto issue = YqlIssue({}, TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN, "Buffer actor isn't available. Operation state unknown.");
ReplyErrorAndDie(Ydb::StatusIds::UNDETERMINED, issue);
if (Request.LocksOp == ELocksOp::Commit && !ReadOnlyTx) {
auto issue = YqlIssue({}, TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN, "Buffer actor isn't available. Operation state unknown.");
ReplyErrorAndDie(Ydb::StatusIds::UNDETERMINED, issue);
} else {
auto issue = YqlIssue({}, TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE, "Buffer actor isn't available.");
ReplyErrorAndDie(Ydb::StatusIds::UNAVAILABLE, issue);
}
}

void MakeResponseAndPassAway() {
Expand Down
5 changes: 2 additions & 3 deletions ydb/core/kqp/runtime/kqp_write_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
TxManager->SetError(ev->Get()->TabletId);
if (Mode == EMode::IMMEDIATE_COMMIT) {
RuntimeError(
NYql::NDqProto::StatusIds::UNAVAILABLE,
NYql::NDqProto::StatusIds::UNDETERMINED,
NYql::TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN,
TStringBuilder()
<< "Error writing to table `" << TableId.PathId.ToString() << "`"
Expand Down Expand Up @@ -2117,14 +2117,13 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
}

ReplyErrorAndDie(
NYql::NDqProto::StatusIds::UNAVAILABLE,
NYql::NDqProto::StatusIds::UNDETERMINED,
NYql::TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN,
TStringBuilder() << "Failed to deviler message to coordinator.",
{});
return;
}


ReplyErrorAndDie(
NYql::NDqProto::StatusIds::UNAVAILABLE,
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
Expand Down
1 change: 1 addition & 0 deletions ydb/library/yql/dq/actors/protos/dq_status_codes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ message StatusIds {
CLUSTER_OVERLOADED = 13;
SCHEME_ERROR = 14;
GENERIC_ERROR = 15;
UNDETERMINED = 16;
}
}
Loading