[UT] disable lake compaction scheduler in unit test (backport #61968) (#61987)

Signed-off-by: starrocks-xupeng <xupeng@starrocks.com>
Co-authored-by: starrocks-xupeng <xupeng@starrocks.com>
This commit is contained in:
mergify[bot] 2025-08-15 18:58:03 +08:00 committed by GitHub
parent f5fac98bdb
commit 982f2ebd3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

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