liutang123 commented on a change in pull request #7521:
URL: https://github.com/apache/incubator-doris/pull/7521#discussion_r785443113



##########
File path: be/src/olap/olap_server.cpp
##########
@@ -551,4 +537,51 @@ void 
StorageEngine::_pop_tablet_from_submitted_compaction(TabletSharedPtr tablet
     }
 }
 
+Status StorageEngine::_submit_compaction_task(TabletSharedPtr tablet, 
CompactionType compaction_type) {
+    bool already_exist = _push_tablet_into_submitted_compaction(tablet, 
compaction_type);
+    if (already_exist) {
+        return Status::InternalError(strings::Substitute(

Review comment:
       Is `Status::AlreadyExist` more appropriate?




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

Reply via email to