zhannngchen commented on code in PR #48399:
URL: https://github.com/apache/doris/pull/48399#discussion_r1984962592


##########
cloud/src/meta-service/meta_service_job.cpp:
##########
@@ -1111,6 +1129,16 @@ void process_schema_change_job(MetaServiceCode& code, 
std::string& msg, std::str
             auto job_val = recorded_job.SerializeAsString();
             txn->put(job_key, job_val);
             if (!new_tablet_job_val.empty()) {
+                auto& compactions = *new_recorded_job.mutable_compaction();
+                compactions.erase(
+                        std::remove_if(
+                                compactions.begin(), compactions.end(),
+                                [&](auto& c) {
+                                    return 
c.has_delete_bitmap_lock_initiator() &&
+                                           c.delete_bitmap_lock_initiator() ==
+                                                   
schema_change.delete_bitmap_lock_initiator();
+                                }),
+                        compactions.end());

Review Comment:
   compaction stop token on be side will be removed, and it won't renew the 
lease, so finally the stop token job will be removed.



-- 
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

Reply via email to