Uh oh!
There was an error while loading. Please reload this page.
[fix](fe) add compatible code for CloudTablet - #59815
Conversation
Thearas
commented
Jan 13, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Pull request overview
This PR adds backward compatibility code to CloudTablet to support downgrading from version 4.1 to 4.0. PR #59814 changed CloudTablet to use a singular replica field instead of the replicas list. This PR introduces a migration mechanism using GsonPostProcessable to convert the old serialization format to the new one during deserialization.
Changes:
- Implements
GsonPostProcessableinterface in CloudTablet - Adds a temporary
replicafield with SerializedName "r" to capture v4.1 serialized data - Implements
gsonPostProcess()method to migrate the singularreplicato thereplicaslist during deserialization
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dataroaring
commented
Jan 14, 2026
run buildall |
d322837 to
41c0aabComparedataroaring
commented
Jan 14, 2026
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
### What problem does this PR solve? apache#59814 modify `replicas` to `replica` in `CloudTablet`, and will merge into 4.1. This pr add compatible code for CloudTablet to make 4.1 can downgrade to 4.0. Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
What problem does this PR solve?
#59814 modify
replicastoreplicainCloudTablet, and will merge into 4.1.This pr add compatible code for CloudTablet to make 4.1 can downgrade to 4.0.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)