-
Notifications
You must be signed in to change notification settings - Fork 164
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
fix: volumemgr: update VRS every time VS changes #4498
fix: volumemgr: update VRS every time VS changes #4498
Conversation
Changes in volume status need to be reflected to the app. This is done through the volume reference status. So every time the function doUpdateVol returns we need to check if the volume status has changed and if so update the volume reference status accordingly. Signed-off-by: Paul Gaiduk <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4498 +/- ##
=======================================
Coverage 20.90% 20.90%
=======================================
Files 13 13
Lines 2894 2894
=======================================
Hits 605 605
Misses 2163 2163
Partials 126 126 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Am I correct that this is not just updating the volume ref status, but also placing the updates inside the The logic change seems correct to me, but I want too be sure we capture it, at least in the PR comment. |
Also one failing test. I will restart it. |
@deitch that's correct. I didn't mention it in the description, because it's not part of the fix logic. However calling those functions only when volume status changes is consistent with the rest of the code base - so we do the same here. |
This is the only place in the code base where volume ref status was not updated after volume status was potentially changed, which led to some changes in volumes to being seen by edge apps.