[bugfix](recover) do not need dynamic partition recover except olap table (#21290)
introduced by #19031 FE could not recover any more because there is a convert to olap table operation in the code. But there are many table types that is not a olap table such as view jdbc table ... It will convert failed and FE will not start correctly.Co-authored-by: yiguolei <yiguolei@gmail.com>
This commit is contained in:
@ -697,7 +697,10 @@ public class CatalogRecycleBin extends MasterDaemon implements Writable {
|
||||
RecoverInfo recoverInfo = new RecoverInfo(db.getId(), table.getId(), -1L, "", newTableName, "");
|
||||
Env.getCurrentEnv().getEditLog().logRecoverTable(recoverInfo);
|
||||
}
|
||||
DynamicPartitionUtil.registerOrRemoveDynamicPartitionTable(db.getId(), (OlapTable) table, isReplay);
|
||||
// Only olap table need recover dynamic partition, other table like jdbc odbc view.. do not need it
|
||||
if (table.getType() == TableType.OLAP) {
|
||||
DynamicPartitionUtil.registerOrRemoveDynamicPartitionTable(db.getId(), (OlapTable) table, isReplay);
|
||||
}
|
||||
} finally {
|
||||
table.writeUnlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user