TimingPipeFlusher.FlushAsync Kestrel exception running inside Aspire with Orleans
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
I have many controllers running inside a DLL, one particular controller uses Orleans and persists to Redis.
I keep getting FlushAsync exceptions *only* in API calls that involve Orleans, but these exceptions happen before it reaches the call to my code (somewhere inside the controller).
The methods all work - but now are 95% slower as several of the same exceptions are also raised when I try to access the Orleans' grains.
Any ideas?
My Aspire Program.cs:
```
var orleans_cache = builder.AddRedis("orleans-redis")
.WithRedisInsight();
var orleans = builder.AddOrleans("orleans-grains")
.WithGrainStorage("orleans-cache", orleans_cache)
.WithClustering(orleans_cache);
```
My Program.cs:
```
builder.AddKeyedRedisDistributedCache("orleans-redis");
builder.AddKeyedRedisClient("orleans-cache");
```
My grain constructor:
```
public World([PersistentState("orleans-redis", "orleans-cache")] IPersistentState context)
{
this.context = context;
}
```
[message.txt](https://github.com/user-attachments/files/19142770/message.txt)
### Expected Behavior
No exceptions
### Exceptions (if any)
Attached
### .NET Version
9.0.100-rc.2.24474.11
### Anything else?
Nothing
Contributor guide
Assessment
This issue has not been assessed yet.