This is an automated email from the ASF dual-hosted git repository. liaoxin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new c50176fdeeb [fix](cloud) fix failed to get delete bitmap update lock key info (#33238) c50176fdeeb is described below commit c50176fdeeb1a67ff7c5a9f87c88769c086edcd5 Author: Xin Liao <liaoxin...@126.com> AuthorDate: Thu Apr 4 11:51:24 2024 +0800 [fix](cloud) fix failed to get delete bitmap update lock key info (#33238) --- cloud/src/meta-service/meta_service_txn.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cloud/src/meta-service/meta_service_txn.cpp b/cloud/src/meta-service/meta_service_txn.cpp index 5f7141ea7b7..41a1e6c4dfe 100644 --- a/cloud/src/meta-service/meta_service_txn.cpp +++ b/cloud/src/meta-service/meta_service_txn.cpp @@ -938,6 +938,13 @@ void MetaServiceImpl::commit_txn(::google::protobuf::RpcController* controller, err = txn->get(lock_key, &lock_val); LOG(INFO) << "get delete bitmap update lock info, table_id=" << table_id << " key=" << hex(lock_key) << " err=" << err; + // When the key does not exist, it means the lock has been acquired + // by another transaction and successfully committed. + if (err == TxnErrorCode::TXN_KEY_NOT_FOUND) { + msg = "lock is expired"; + code = MetaServiceCode::LOCK_EXPIRED; + return; + } if (err != TxnErrorCode::TXN_OK) { ss << "failed to get delete bitmap update lock key info, instance_id=" << instance_id << " table_id=" << table_id << " key=" << hex(lock_key) << " err=" << err; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org