mymeiyi commented on code in PR #49716: URL: https://github.com/apache/doris/pull/49716#discussion_r2032550171
########## cloud/src/meta-service/meta_service_job.cpp: ########## @@ -587,7 +587,32 @@ static void remove_delete_bitmap_update_lock(std::unique_ptr<Transaction>& txn, mow_tablet_compaction_key({instance_id, table_id, lock_initiator}); std::string tablet_compaction_val; TxnErrorCode err = txn->get(tablet_compaction_key, &tablet_compaction_val); - if (err != TxnErrorCode::TXN_OK) { + if (err == TxnErrorCode::TXN_KEY_NOT_FOUND) { + // initiator may remain in initiators when upgrade ms, need to clear it + std::string lock_key = meta_delete_bitmap_update_lock_key({instance_id, table_id, -1}); Review Comment: use COMPACTION_DELETE_BITMAP_LOCK_ID, rather than -1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org