This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 601565341b [fix](gson) avoid gson serde with EsRepository (#19385)
601565341b is described below
commit 601565341bd0c11f209fb1e9afd76d979a253fc3
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 cf4bdc4272..705d3193bc 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
@@ -202,8 +202,9 @@ public class InternalCatalog implements CatalogIf<Database>
{
private ConcurrentHashMap<Long, Database> idToDb = new
ConcurrentHashMap<>();
private ConcurrentHashMap<String, Database> fullNameToDb = 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]