fix(dataprotection): shorten restore-derived names on release-1.0#10266
Open
weicao wants to merge 1 commit into
Open
fix(dataprotection): shorten restore-derived names on release-1.0#10266weicao wants to merge 1 commit into
weicao wants to merge 1 commit into
Conversation
Collaborator
|
Auto Cherry-pick Instructions |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-1.0 #10266 +/- ##
===============================================
+ Coverage 53.78% 53.83% +0.05%
===============================================
Files 493 493
Lines 55343 55376 +33
===============================================
+ Hits 29765 29813 +48
+ Misses 22608 22585 -23
- Partials 2970 2978 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this fix?
OceanBase PITR restore on a temporary release-1.0 patch image hit a DataProtection Restore controller blocker before the engine restore path could run.
The prepareData Restore stayed
Running, and Kubernetes rejected the generated prepareData Job because a derived volume name was longer than 63 characters:That name is built from:
For a valid long restore/component name, this can exceed the Kubernetes DNS label limit used by
volume.nameandvolumeMount.name.How this patch fixes it
This backports the main-branch fix from #10150 and adds the observed OceanBase case to the restore unit test.
ShortenKubeNamehelper that keeps short names unchanged and shortens long names with a stable hash suffix.claimNameunchanged; only the Kubernetes volume / volumeMount name is shortened.volume.nameandvolumeMount.namestay identical after shortening.Evidence boundary
Primary runtime evidence is OceanBase PITR N=1 on a temporary patch image. This proves a release-1.0 DataProtection control-plane blocker for this long-name restore shape. It is not an OceanBase product verdict and not release-ready evidence.
Validation
Passed:
Blocked by an existing release-1.0 generated mock gap, not by this patch:
Error:
Runtime unlock still requires a refreshed temporary controller image and the same long-name OceanBase restore sample to pass. Static checks alone do not close the blocker.