[bugfix] (dynamic partition) dynamic partition job is removed when tbl is sync (#23404)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user