fix: prevent inventory from overwriting Deleting status for NVLink#2674
fix: prevent inventory from overwriting Deleting status for NVLink#2674obondarev wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Summary by CodeRabbit
Walkthrough
ChangesDeleting Status Guard and Test Coverage
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Add a guard in the NVLink inventory update loop to skip status updates when the partition is already in Deleting state, matching the existing guard in the InfiniBand Partition processor. Without this, a race between inventory and the delete workflow could overwrite Deleting→Ready, causing the partition to never be cleaned up from the DB. Signed-off-by: Oleg Bondarev <obondarev@mirantis.com>
21dee59 to
891d51c
Compare
Add a guard in the NVLink inventory update loop to skip status updates when the partition is already in Deleting state, matching the existing guard in the InfiniBand Partition processor. Without this, a race between inventory and the delete workflow could overwrite Deleting→Ready, causing the partition to never be cleaned up from the DB.
Related issues
Type of Change
Breaking Changes
Testing
Additional Notes