This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit ffdfdf8b4e35758016fc7b14b1f0bf586d2067bd Author: Mingyu Chen <[email protected]> AuthorDate: Wed May 10 11:37:18 2023 +0800 [fix](gson) avoid gson serde with EsRepository (#19385) To avoid error like: class org.apache.doris.external.elasticsearch.EsRepository declares multiple JSON fields named runnable --- .../src/main/java/org/apache/doris/datasource/InternalCatalog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java index cbdfb68c3a..3e61fe8127 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java @@ -222,8 +222,9 @@ public class InternalCatalog implements CatalogIf<Database> { private ConcurrentHashMap<Long, Cluster> idToCluster = new ConcurrentHashMap<>(); private ConcurrentHashMap<String, Cluster> nameToCluster = new ConcurrentHashMap<>(); + // Add transient to fix gson issue. @Getter - private EsRepository esRepository = new EsRepository(); + private transient EsRepository esRepository = new EsRepository(); @Getter private IcebergTableCreationRecordMgr icebergTableCreationRecordMgr = new IcebergTableCreationRecordMgr(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
