Open mitchellwrosen opened 4 years ago
I'm happy to merge this PR as is but I think if would be best to add test case that fails without this PR and passes with it.
Will do
Hm. I attempted to add a failing test and follow it up with the commit that fixes it, but the commit that was supposed to fail passed CI. It's racy - the background threads might exhaust the handles before they're killed, which makes the test pass.
Maybe I could just reword the commit to not claim the test is "failing", follow up with the original commit, and call it good? :)
Hmm. My 500 foot view tells me there are still some mysteries here to solve. I'll try to take a look just to make sure I understand the problem and the fix. Thanks for adding the test ... I'll see if I can help make it reproducible.
Hm. Live-lock 👀
Hmm it looks like your fix is not passing your test
I'm not sure what the issue was, but I reworked the code a little bit and got the tests passing. Not very reassuring but... I think the logic checks out. Want me to restate what the issue was, and why this patch fixes it?
Just saw your new changes. Going to review them soon.
Want me to restate what the issue was, and why this patch fixes it?
Sure
Hi Jonathan,
I looked into debugging this start error that I was seeing (note the empty stdout/stderr):
And with this patch, it instead looks like
I'll annotate the PR with more info about what's going on