aspnet / HttpSysServer

[Archived] A web server for ASP.NET Core based on the Windows Http Server API. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
106 stars 39 forks source link

Test failure: Server_SetHttp503VebosittHittingThrottle_Success #472

Closed ryanbrandenburg closed 6 years ago

ryanbrandenburg commented 6 years ago

This test fails occasionally with the following error:

System.Net.Http.HttpRequestException : Response status code does not indicate success: 503 (Service Unavailable).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
   at Microsoft.AspNetCore.Server.HttpSys.ServerTests.SendRequestAsync(String uri) in /_/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/ServerTests.cs:line 638
   at Microsoft.AspNetCore.Server.HttpSys.ServerTests.Server_SetHttp503VebosittHittingThrottle_Success() in /_/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/ServerTests.cs:line 334
--- End of stack trace from previous location where exception was thrown ---

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

This test failed on master.

CC @Eilon (because the bot doesn't know who else to pick)

This issue was made automatically. If there is a problem contact ryanbrandenburg.

ryanbrandenburg commented 6 years ago

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Tratcher commented 6 years ago

Note the exception comes from here: https://github.com/aspnet/HttpSysServer/blob/eba2d7e380fef9f75203bb9a1f4d30827451d512/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/ServerTests.cs#L334

It's trying to verify the server recovers after some connections are closed. No indication of why the server did not recover in time.

4 failures in recorded history ranging between April and August, all on different OS's/agents.

ryanbrandenburg commented 6 years ago

@muratg was this resolved? Please assign someone to find out.

aspnet-hello commented 6 years ago

Server_SetHttp503VebosittHittingThrottle_Success failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

There were 1 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Eilon commented 6 years ago

@Tratcher looks like this one is still being relatively flaky, so please try to come up with a solution for this.

aspnet-hello commented 6 years ago

This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 1 failures with about the same error on master at 10:47:18 AM:

Tratcher commented 6 years ago

No repro, but I did do some code cleanup that should help.