You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(Microsoft.AspNetCore.SignalR.HubException)
Actual: typeof(System.IO.IOException)
Stacktrace
Details
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(Microsoft.AspNetCore.SignalR.HubException)
Actual: typeof(System.IO.IOException)
at Xunit.Assert.Throws[T](Func`1 testCode)
at Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests.RedisHubLifetimeManagerTests.ClientDisconnectsWithoutCompletingClientResultOnSecondServer()
Logs
Details
See build logs for detailed output. When a client disconnects while a client result is pending on the second server, the test expects a HubException but intermittently gets an IOException instead.
The test ClientDisconnectsWithoutCompletingClientResultOnSecondServer intermittently fails because the actual exception thrown is System.IO.IOException instead of the expected Microsoft.AspNetCore.SignalR.HubException.
Root cause: This is a race condition in the Redis backplane client result handling when a client disconnects unexpectedly on a second server. The test:
Invokes a client result from server2 to client1 (connected to server1)
Disconnects client1 before the result is completed
Expects a HubException indicating the client disconnected
When the Redis connection between the two servers drops or when the cleanup races with the client result wait, the SignalR infrastructure may throw an IOException (from the underlying Redis connection or stream) instead of wrapping it in a HubException.
The fix would be to ensure that when a client disconnects mid-client-result-invocation, all network-level exceptions from the Redis backplane are caught and wrapped in a HubException before propagating to the caller.
Quarantine PR: The test is being quarantined to unblock CI while the exception wrapping issue is investigated.
The test ClientDisconnectsWithoutCompletingClientResultOnSecondServer intermittently fails with:
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(Microsoft.AspNetCore.SignalR.HubException)
Actual: typeof(System.IO.IOException)
---- System.IO.IOException : Connection '0e9a7dbd-bed3-4098-ad6f-cc14559a158e' does not exist.
Root cause: There is a race condition in RedisHubLifetimeManager.InvokeConnectionAsync (RedisHubLifetimeManager.cs:403). The test:
Has client1 connected to server1/manager2
Invokes a client result from manager1 to connection1 (cross-server via Redis)
Disconnects client1 before the result is received
When the timing is tight between the disconnect propagation and the Redis invocation, InvokeConnectionAsync throws a System.IO.IOException ("Connection does not exist") directly from the Redis layer rather than the expected HubException. The fix would be to ensure that InvokeConnectionAsync wraps or rethrows IOException as HubException consistently when the connection no longer exists.
This test is being quarantined while the fix is investigated.
Note
🔒 Integrity filter blocked 9 items
The following items were blocked because they don't meet the GitHub integrity level.
#65928pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
#65869pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
#65893pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
#65815pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
Activity
github-actions commentedon Mar 18, 2026
Investigation
The test
ClientDisconnectsWithoutCompletingClientResultOnSecondServerintermittently fails because the actual exception thrown isSystem.IO.IOExceptioninstead of the expectedMicrosoft.AspNetCore.SignalR.HubException.Root cause: This is a race condition in the Redis backplane client result handling when a client disconnects unexpectedly on a second server. The test:
HubExceptionindicating the client disconnectedWhen the Redis connection between the two servers drops or when the cleanup races with the client result wait, the SignalR infrastructure may throw an
IOException(from the underlying Redis connection or stream) instead of wrapping it in aHubException.The fix would be to ensure that when a client disconnects mid-client-result-invocation, all network-level exceptions from the Redis backplane are caught and wrapped in a
HubExceptionbefore propagating to the caller.Quarantine PR: The test is being quarantined to unblock CI while the exception wrapping issue is investigated.
Quarantine RedisHubLifetimeManagerTests.ClientDisconnectsWithoutCompl…
github-actions commentedon Mar 27, 2026
Investigation
The test
ClientDisconnectsWithoutCompletingClientResultOnSecondServerintermittently fails with:Root cause: There is a race condition in
RedisHubLifetimeManager.InvokeConnectionAsync(RedisHubLifetimeManager.cs:403). The test:When the timing is tight between the disconnect propagation and the Redis invocation,
InvokeConnectionAsyncthrows aSystem.IO.IOException("Connection does not exist") directly from the Redis layer rather than the expectedHubException. The fix would be to ensure thatInvokeConnectionAsyncwraps or rethrowsIOExceptionasHubExceptionconsistently when the connection no longer exists.This test is being quarantined while the fix is investigated.
Note
🔒 Integrity filter blocked 9 items
The following items were blocked because they don't meet the GitHub integrity level.
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter: