This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 7792740d354 branch-4.1: [cloud](fe) RestoreJob cannot deserialize
Tablet when upgrade #62673 (#63099)
7792740d354 is described below
commit 7792740d35475c3272791661814401bcd1de918f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun May 10 18:27:59 2026 +0800
branch-4.1: [cloud](fe) RestoreJob cannot deserialize Tablet when upgrade
#62673 (#63099)
Cherry-picked from #62673
Co-authored-by: meiyi <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
index e315f967a73..dcdce47698b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
@@ -550,7 +550,9 @@ public class GsonUtils {
} else {
// compatible with old cloud code.
tabletTypeAdapterFactory.registerDefaultSubtype(CloudTablet.class);
+
tabletTypeAdapterFactory.registerCompatibleSubtype(CloudTablet.class,
Tablet.class.getSimpleName());
replicaTypeAdapterFactory.registerDefaultSubtype(CloudReplica.class);
+
replicaTypeAdapterFactory.registerCompatibleSubtype(CloudReplica.class,
Replica.class.getSimpleName());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]