Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: gengjun-git <[email protected]>
  • Loading branch information
gengjun-git committed Sep 2, 2024
1 parent d19dabe commit ab2763a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions fe/fe-core/src/main/java/com/starrocks/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, aliases = {"ignore_unknown_log_id"})
public static boolean ignore_unknown_operation_type = false;

@ConfField
public static boolean ignore_unknown_subtype = false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
import com.starrocks.catalog.EsTable;
import com.starrocks.catalog.ExpressionRangePartitionInfo;
import com.starrocks.catalog.ExpressionRangePartitionInfoV2;
import com.starrocks.catalog.ExternalOlapTable;
import com.starrocks.catalog.FileTable;
import com.starrocks.catalog.Function;
import com.starrocks.catalog.HashDistributionInfo;
Expand Down Expand Up @@ -305,7 +304,6 @@ public class GsonUtils {
private static final RuntimeTypeAdapterFactory<com.starrocks.catalog.Table> TABLE_TYPE_ADAPTER_FACTORY
= RuntimeTypeAdapterFactory.of(com.starrocks.catalog.Table.class, "clazz")
.registerSubtype(EsTable.class, "EsTable")
.registerSubtype(ExternalOlapTable.class, "ExternalOlapTable")
.registerSubtype(FileTable.class, "FileTable")
.registerSubtype(HiveTable.class, "HiveTable")
.registerSubtype(HudiTable.class, "HudiTable")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public <T> void readCollection(Class<T> classType, CollectionConsumer<? super T>
numJsonRead++;
action.accept(t);
} catch (SubtypeNotFoundException e) {
LOG.info("ignore_unknown_subtype is {}", Config.ignore_unknown_subtype);
if (Config.ignore_unknown_subtype) {
LOG.warn("ignore unknown sub type: {}", e.getSubtype(), e);
numJsonRead++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ protected boolean canSkipBadReplayedJournal(Throwable t) {

// 3. ignore_unknown_subtype = true will skip the subtype not found failure which happens on downgrading
if (t.getCause() != null && t.getCause() instanceof SubtypeNotFoundException) {
LOG.warn("ignore unknown subtype");
LOG.warn("ignore unknown subtype: {}", (((SubtypeNotFoundException) t.getCause()).getSubtype()));
return true;
}

Expand Down

0 comments on commit ab2763a

Please sign in to comment.