Skip to content

Conversation

danielmarbach
Copy link
Contributor

Backport of #1587 to release-7.0

…ubscription cache (#1587)

* Primary ctor
* Fix problematic caching in CachedSubscriptionStore
* Fix race around semaphore

* Clear

* Use monotonic stopwatch

* Use the lease structure consistently

* Get rid of the sugar

* Get rid of the sugar

* EnsureFresh semaphore acquiring can be cancelled

* Adding unit test that reproduced the bug on master

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
@danielmarbach danielmarbach added this to the 7.0.12 milestone Sep 20, 2025
@danielmarbach danielmarbach merged commit 13b2a48 into release-7.0 Sep 23, 2025
4 checks passed
@danielmarbach danielmarbach deleted the backport-cache-fixes-r70 branch September 23, 2025 11:50
@danielmarbach danielmarbach changed the title Avoid cancellation token cross-contamination and thundering herd in subscription cache Cancelling publishing can cause one or more unrelated publish calls to throw cancellation exceptions Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants