Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Compatibility fix for RecyclePartitionInfo and AlterJobV2 #49636

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

kevincai
Copy link
Contributor

@kevincai kevincai commented Aug 9, 2024

Why I'm doing:

What I'm doing:

  • RuntimeTypeAdapterFactory allows registering a subtype as the fallback
    type if a class can't be recognized during deserialization
  • ForwardCompatibleRecyclePartitionInfoV2 is added as the fallback
    subtype for RecyclePartitionInfoV2
  • ForwardCompatibleAlterJobV2Object is added as the fallback subtype for
    AlterJobV2
  • Update AlterJobMgr/CatalogRecycleBin accordingly to ignore the
    ForwardCompatible objects

Fixes #49680

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.3
    • 3.2
    • 3.1
    • 3.0
    • 2.5

Documentation PRs only:

If you are submitting a PR that adds or changes English documentation and have not
included Chinese documentation, then you can check the box to request GPT to translate the
English doc to Chinese. Please ensure to uncheck the Do not translate box if translation is needed.
The workflow will generate a new PR with the Chinese translation after this PR is merged.

  • Yes, translate English markdown files with GPT
  • Do not translate

@kevincai kevincai removed the request for review from a team August 9, 2024 05:46
@github-actions github-actions bot added the 3.2 label Aug 9, 2024
@kevincai kevincai force-pushed the compatibility-fix branch 3 times, most recently from 2f99b01 to 1dd73ba Compare August 10, 2024 02:24
gengjun-git
gengjun-git previously approved these changes Aug 12, 2024
…AlterJobV2

* `RuntimeTypeAdapterFactory` allows registering a subtype as the fallback
  type if a class can't be recognized during deserialization
* `ForwardCompatibleRecyclePartitionInfoV2` is added as the fallback
  subtype for `RecyclePartitionInfoV2`
* `ForwardCompatibleAlterJobV2Object` is added as the fallback subtype for
  `AlterJobV2`
* Update `AlterJobMgr/CatalogRecycleBin` accordingly to ignore the
  ForwardCompatible objects

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
Copy link

sonarcloud bot commented Aug 20, 2024

Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 37 / 39 (94.87%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/alter/ForwardCompatibleAlterJobV2Object.java 11 13 84.62% [31, 32]
🔵 com/starrocks/catalog/CatalogRecycleBin.java 6 6 100.00% []
🔵 com/starrocks/persist/gson/GsonUtils.java 4 4 100.00% []
🔵 com/starrocks/persist/gson/RuntimeTypeAdapterFactory.java 8 8 100.00% []
🔵 com/starrocks/alter/AlterJobMgr.java 6 6 100.00% []
🔵 com/starrocks/catalog/ForwardCompatibleRecyclePartitionInfoV2.java 2 2 100.00% []

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@wyb wyb merged commit 3cfcd6a into StarRocks:main Aug 20, 2024
52 checks passed
Copy link

@Mergifyio backport branch-3.3

@github-actions github-actions bot removed the 3.3 label Aug 20, 2024
Copy link

@Mergifyio backport branch-3.2

@github-actions github-actions bot removed the 3.2 label Aug 20, 2024
Copy link
Contributor

mergify bot commented Aug 20, 2024

backport branch-3.3

✅ Backports have been created

Copy link
Contributor

mergify bot commented Aug 20, 2024

backport branch-3.2

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 20, 2024
…V2 (#49636)

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
(cherry picked from commit 3cfcd6a)
mergify bot pushed a commit that referenced this pull request Aug 20, 2024
…V2 (#49636)

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
(cherry picked from commit 3cfcd6a)

# Conflicts:
#	fe/fe-core/src/main/java/com/starrocks/catalog/CatalogRecycleBin.java
#	fe/fe-core/src/main/java/com/starrocks/persist/gson/GsonUtils.java
kevincai added a commit that referenced this pull request Aug 21, 2024
…V2 (#49636)

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
(cherry picked from commit 3cfcd6a)
wanpengfei-git pushed a commit that referenced this pull request Aug 21, 2024
wanpengfei-git pushed a commit that referenced this pull request Aug 23, 2024
…V2 (backport #49636) (#50027)

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
Co-authored-by: Kevin Cai <[email protected]>
gengjun-git added a commit to gengjun-git/starrocks that referenced this pull request Aug 26, 2024
@kevincai kevincai deleted the compatibility-fix branch October 19, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants