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