[bugfix] (dynamic partition) dynamic partition job is removed when tbl is sync (#23404)

This commit is contained in:
DeadlineFen
2023-08-29 20:35:56 +08:00
committed by GitHub
parent 1ac0ff0ea9
commit 4f7e7040ad
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class BinlogGcer extends MasterDaemon {
if (tombstones != null && !tombstones.isEmpty()) {
LOG.info("tomebstones size: {}", tombstones.size());
} else {
LOG.info("no gc binlogg");
LOG.info("no gc binlog");
return;
}

View File

@ -501,11 +501,12 @@ public class DynamicPartitionScheduler extends MasterDaemon {
olapTable = (OlapTable) db.getTableNullable(tableId);
// Only OlapTable has DynamicPartitionProperty
if (olapTable == null
|| olapTable.isBeingSynced()
|| !olapTable.dynamicPartitionExists()
|| !olapTable.getTableProperty().getDynamicPartitionProperty().getEnable()) {
iterator.remove();
continue;
} else if (olapTable.isBeingSynced()) {
continue;
}
olapTable.readLock();
try {