Commit b0a4593
committed
Merge pull request #761 from remibergsma/fix-hyperv-returns
Have HyperV behave in 4.4 and return null instead of falseCommit 6a4927f made the HyperV investigator return false instead of null.
Returning false means the VM is NOT running, returning null means "I don't know". In 4.4 I experienced corruption because of HyperV returning false, instead of null.
Tonight I experienced corruption when one of our management servers went down (out-of-memory, not root caused yet). While all hypervisors that were connected to this management server were connecting the other, HA work started as well with investigators. HyperV happily reported everything as down (while it was still running), causing a mess.
In 4.5 and master this was already fixed. If you know a better way to fix this, please let me know!
This may cause another FindBugs alert, not sure how to resolve that. I just want this out ASAP. Maybe @DaanHoogland @wilderrodrigues or @miguelaferreira can advise on how to fix this properly.
* pr/761:
Have HyperV behave in 4.4 and return null instead of false
Signed-off-by: Wilder Rodrigues <wilder.rodrigues@ekholabs.nl>File tree
1 file changed
+2
-2
lines changed- plugins/hypervisors/hyperv/src/com/cloud/ha
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments