github-actions[bot] commented on code in PR #62673:
URL: https://github.com/apache/doris/pull/62673#discussion_r3121287764


##########
fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java:
##########
@@ -526,7 +526,9 @@ public class GsonUtils {
         } else {
             // compatible with old cloud code.
             tabletTypeAdapterFactory.registerDefaultSubtype(CloudTablet.class);
+            
tabletTypeAdapterFactory.registerCompatibleSubtype(CloudTablet.class, 
Tablet.class.getSimpleName());

Review Comment:
   This compatibility fix needs a regression test. The new label remaps are in 
the right place, but there is still no FE test exercising a legacy cloud 
RestoreJob/BackupMeta payload with nested `"clazz":"Tablet"` and 
`"clazz":"Replica"` values. Because this code sits on the journal/image replay 
path, a future `GsonUtils` refactor can reintroduce the same upgrade break 
without any signal. Please add a focused FE serialization test that 
deserializes a representative old payload in cloud mode and proves both labels 
are accepted.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to