platoneko commented on code in PR #16813:
URL: https://github.com/apache/doris/pull/16813#discussion_r1126766010
##########
be/src/olap/tablet.cpp:
##########
@@ -1772,11 +1796,31 @@ Status check_version_continuity(const
std::vector<RowsetMetaSharedPtr>& rs_metas
return Status::OK();
}
-Status Tablet::write_cooldown_meta() {
+// It's guaranteed the write cooldown meta task would be invoked at the end
unless BE crashes
+// one tablet would at most have one async task to be done
+void Tablet::async_write_cooldown_meta() {
+ WriteCooldownMetaExecutors::GetInstance()->submit(tablet_id(), [this]() {
Review Comment:
Seems that it's not a good idea to provide
`Tablet::async_write_cooldown_meta`, just make a closure and capture tablet's
copied shared ptr, call `tablet->write_cooldown_meta` in this closure.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]