Signed-off-by: starrocks-xupeng <xupeng@starrocks.com> Co-authored-by: starrocks-xupeng <xupeng@starrocks.com>
This commit is contained in:
parent
f5fac98bdb
commit
982f2ebd3e
|
|
@ -25,6 +25,7 @@ import com.starrocks.common.AnalysisException;
|
|||
import com.starrocks.common.Config;
|
||||
import com.starrocks.common.DuplicatedRequestException;
|
||||
import com.starrocks.common.ErrorReportException;
|
||||
import com.starrocks.common.FeConstants;
|
||||
import com.starrocks.common.LabelAlreadyUsedException;
|
||||
import com.starrocks.common.MetaNotFoundException;
|
||||
import com.starrocks.common.NoAliveBackendException;
|
||||
|
|
@ -104,6 +105,10 @@ public class CompactionScheduler extends Daemon {
|
|||
|
||||
@Override
|
||||
protected void runOneCycle() {
|
||||
if (FeConstants.runningUnitTest) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<PartitionIdentifier> deletedPartitionIdentifiers = cleanPhysicalPartition();
|
||||
|
||||
// Schedule compaction tasks only when this is a leader FE and all edit logs have finished replay.
|
||||
|
|
|
|||
Loading…
Reference in New Issue