<fix>[db]: ZSTAC-85010 add CBT temp volume schema#4564
Conversation
Create CbtTaskTemporaryVolumeVO in the 5.4.12 schema upgrade. Ensure the premium CBT temp-volume mapping table exists before startup legacy data migration runs. Resolves: ZSTAC-85010 Change-Id: I38a98c47ee71c5ddbf404779544696b4bac50467
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Warning
|
Migrate legacy CBT scratch volume refs into CbtTaskTemporaryVolumeVO during the 5.4.12 schema upgrade. Also restore real source volume refs and delete old scratch-volume refs from CbtTaskResourceRefVO so business code no longer needs runtime legacy fallback. Test: git diff --check upstream/5.4.12..HEAD -- conf/db/upgrade/V5.4.12__schema.sql Resolves: ZSTAC-85010 Change-Id: Ib38c88c91c3a140cc1e684baa9f25d6f1b4047d5
Summary
Add the database schema for
CbtTaskTemporaryVolumeVOin the5.4.12upgrade SQL. This table is used by the companion premium CBT fix to keep scratch volumes out ofCbtTaskResourceRefVO.Changes
CbtTaskTemporaryVolumeVOtoconf/db/upgrade/V5.4.12__schema.sql.(taskUuid, sourceVolumeUuid)unique constraint to match the premium VO.CbtTaskVOandVolumeEO.Testing
git diff --check upstream/5.4.12..HEADCompanion premium MR will use the same source branch name:
fix/ZSTAC-85010-5.4.12@@2.Supersedes premium-only MR: http://dev.zstack.io:9080/zstackio/premium/-/merge_requests/14737
Resolves: ZSTAC-85010
sync from gitlab !10532