SWJTU-ZhangLei commented on code in PR #38243: URL: https://github.com/apache/doris/pull/38243#discussion_r1733771936
########## cloud/src/recycler/recycler.cpp: ########## @@ -1119,6 +1200,12 @@ int InstanceRecycler::recycle_tablets(int64_t table_id, int64_t index_id, int64_ return -1; } int64_t tablet_id = tablet_meta_pb.tablet_id(); + + if (!check_lazy_txn_finished(txn_kv_, instance_id_, tablet_meta_pb.tablet_id())) { + LOG(WARNING) << "lazy txn not finished tablet_id=" << tablet_meta_pb.tablet_id(); Review Comment: > LOG "lazy txn not finished, skip recycling. tablet_id= ... txn_id ..." and add a bvar to monitor `skip_recyle_tablet_lazy_txn` int the `check_lazy_txn_finished `, every abnormal branch has more detail log ########## cloud/src/recycler/recycler.cpp: ########## @@ -1119,6 +1200,12 @@ int InstanceRecycler::recycle_tablets(int64_t table_id, int64_t index_id, int64_ return -1; } int64_t tablet_id = tablet_meta_pb.tablet_id(); + + if (!check_lazy_txn_finished(txn_kv_, instance_id_, tablet_meta_pb.tablet_id())) { + LOG(WARNING) << "lazy txn not finished tablet_id=" << tablet_meta_pb.tablet_id(); Review Comment: > LOG "lazy txn not finished, skip recycling. tablet_id= ... txn_id ..." and add a bvar to monitor `skip_recyle_tablet_lazy_txn` in the `check_lazy_txn_finished `, every abnormal branch has more detail log -- 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