Change error msg of mini load when PUBLISH_TIMEOUT (#1415)

This commit is contained in:
EmmyMiao87
2019-07-01 16:05:49 +08:00
committed by ZHAO Chun
parent 8db97998ba
commit b0af97d8aa

View File

@ -809,6 +809,9 @@ void MiniLoadAction::_new_handle(HttpRequest* req) {
if (!ctx->status.ok()) {
if (ctx->need_rollback) {
_exec_env->stream_load_executor()->rollback_txn(ctx);
if (ctx->status.code() == TStatusCode::PUBLISH_TIMEOUT) {
ctx->status = Status::PublishTimeout("transation has been rollback because it was timeout in phase of publish");
}
ctx->need_rollback = false;
}
if (ctx->body_sink.get() != nullptr) {