Skip to content

Subscription: improve event consistency by operating within the compute method#13787

Merged
SteveYurongSu merged 3 commits intoapache:masterfrom
VGalaxies:sub-consistency
Oct 16, 2024
Merged

Subscription: improve event consistency by operating within the compute method#13787
SteveYurongSu merged 3 commits intoapache:masterfrom
VGalaxies:sub-consistency

Conversation

@VGalaxies
Copy link
Copy Markdown
Contributor

To ensure consistency while holding this lock in prefetching queue (although it does not enforce mutual exclusion among the other operations themselves.), updates to the SubscriptionEvent in both SubscriptionPrefetchingQueue#prefetchingQueue and SubscriptionPrefetchingQueue#inFlightEvents must be performed within the ConcurrentHashMap#compute method of inFlightEvents in the SubscriptionPrefetchingQueue.

@SteveYurongSu SteveYurongSu self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants