Open gohalo opened 2 months ago
Fixes #383
When invoking the prepare method for some transaction, there maybe get some chance failed, with the following code.
Status TransactionMgr::commit_transaction(const HttpRequest* req, std::string* resp) { // ...... if (!ctx->lock.try_lock()) { st = Status::TransactionInProcessing("Transaction in processing, please retry later"); *resp = _build_reply(label, TXN_COMMIT, st); return st; } // ...... }
And the flink connector just throw an exception without retry.
What type of PR is this:
Which issues of this PR fixes :
Fixes #383
Problem Summary(Required) :
When invoking the prepare method for some transaction, there maybe get some chance failed, with the following code.
And the flink connector just throw an exception without retry.
Checklist: