Fix retry loop around Process.Kill#102962
Conversation
We do not need to be retrying after Process.Kill succeeds
|
Missed a change in #102958 |
|
Should it throw if all tries fail? |
danmoseley
left a comment
There was a problem hiding this comment.
Oh wow, who code reviewed that!
The tests should still work fine if the process that we tried to kill does not get actually killed in rare situations. It will increase memory load on the test machine. This workaround should not be needed in the first place. It is working around bugs in Process.Kill implementation. |
But how could we know it's a rare situation if it doesn't throw? Maybe all these 4 retries will 100% fail. |
|
Ok, I have made the change to propagate the exception from the last retry: #102974 . It is going to tell us whether the failure is persistent once it occurs that is a useful data point. |
We do not need to be retrying after Process.Kill succeeds