-
Notifications
You must be signed in to change notification settings - Fork 117
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
'testRaceNewRequestsVsShutdown' fails frequently on macOS #290
Comments
Also got a failure in CI in #335:
|
And then it hanged in the next run on 5.3. |
The call stack above points at func assertInvariants() {
assert(self.waiters.isEmpty)
assert(self.availableConnections.isEmpty)
assert(self.leasedConnections.isEmpty)
assert(self.openedConnectionsCount == 0)
---> assert(self.pending == 0)
} Of course this isn't all that helpful because we need to know how the heck we got here. The above call stack isn't much use to us to diagnose that. Thankfully the only call to |
CC @artemredkin |
I'll look into this issue |
CC @artemredkin / @fabianfett |
Implementation replaced in #427. 100 consecutive runs on macOS didn't show this issue again. |
More specifically the opened connections count invariant assertion fails here. We expect to have no open connection at this point, however, I saw a negative connection count each time it failed.
I noticed that the connections were often released multiple times when in the
.closed
state here.I hit this against
c9a9bf061d713c91ee9974fa8a6afe413acfd0e9
on macOS (Xcode 12 beta) and was unable to reproduce it against the swift:5.2 Docker image.The text was updated successfully, but these errors were encountered: