jet / propulsion

.NET event stream projection and scheduling platform with CosmosDB, DynamoDB, EventStoreDB, MemoryStore, message-db, Equinox and Kafka integrations
https://github.com/jet/dotnet-templates
Apache License 2.0
177 stars 24 forks source link

fix: Remove over-Release on cancellation in WaitButRelease #230

Closed bartelink closed 1 year ago

bartelink commented 1 year ago

Under load, as cancellations of the waits kick in, this bug results in the Dispatcher getting handed capacity beyond the specified max degree of parallelism, which means it will dispatch too many concurrent threads

cc @epNickColeman