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

MTV-1775 | Fix not finished task NPE #1273

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Dec 17, 2024

Issue:
If the snapshot creation task did not finish the controller fails with NPE. This happens due to the taks not returning the result and we are trying to typcase that result (nil) to the ManagedObject.

Fix:
Add check if the task finished or retry.

Issue:
If the snapshot creation task did not finish the controller fails with
NPE. This happens due to the taks not returning the result and we are
trying to typcase that result (nil) to the ManagedObject.

Fix:
Add check if the task finished or retry.

Signed-off-by: Martin Necas <[email protected]>
@mnecas mnecas requested a review from yaacov as a code owner December 17, 2024 07:03
Copy link

sonarcloud bot commented Dec 17, 2024

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 15.44%. Comparing base (6aa0f99) to head (60500c7).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/adapter/vsphere/client.go 0.00% 12 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1273      +/-   ##
==========================================
- Coverage   15.48%   15.44%   -0.05%     
==========================================
  Files         112      112              
  Lines       23388    23399      +11     
==========================================
- Hits         3621     3613       -8     
- Misses      19479    19501      +22     
+ Partials      288      285       -3     
Flag Coverage Δ
unittests 15.44% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mnecas mnecas merged commit 5bb3c1c into kubev2v:main Dec 17, 2024
17 checks passed
@mnecas mnecas added this to the 2.7.7 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants