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

Try to improve EventSource_ParallelRequests_LogsNewConnectionIdForEachRequest reliability #89192

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

MihaZupan
Copy link
Member

@MihaZupan MihaZupan commented Jul 19, 2023

Closes #89035. We can reopen it if it continues to fail

Working on a guess here, if the server tasks are unblocked too soon, they might quickly process the request, and the client will assign another request to that connection. As a result, some server connections may never receive a request, which causes the test to time out.

The main change is unblocking the server tasks after we've read all client requests.
Then I also changed the WhenAlls to WhenAllCompletedOrAnyFailed to see if we can get better error information.

Edit: While that race might have happened, after switching to WhenAllCompletedOrAnyFailed the logs show that the server was rejecting connections. Not seeing failures anymore after raising the ListenBacklog.

@MihaZupan MihaZupan added this to the 8.0.0 milestone Jul 19, 2023
@MihaZupan MihaZupan requested a review from a team July 19, 2023 16:33
@MihaZupan

This comment was marked as resolved.

@azure-pipelines

This comment was marked as resolved.

@MihaZupan MihaZupan marked this pull request as draft July 19, 2023 18:48
@MihaZupan

This comment was marked as resolved.

@azure-pipelines

This comment was marked as resolved.

@MihaZupan
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MihaZupan MihaZupan marked this pull request as ready for review July 19, 2023 21:27
Copy link
Member

@antonfirsov antonfirsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@antonfirsov antonfirsov merged commit 783652d into dotnet:main Jul 27, 2023
103 of 111 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventSource_ParallelRequests_LogsNewConnectionIdForEachRequest timeout on OSX
2 participants