Skip to content

Conversation

dmdashenkov
Copy link
Contributor

@dmdashenkov dmdashenkov commented Aug 7, 2019

This PR tackles the issue appearing in the MultitenantSubscriptionRegistry. Despite declaring all its methods as synchronized, the registry was not thread-safe.

In this PR we:

  1. Make the MultitenantSubscriptionRegistry thread-safe via concurrent collections and thoughtful synchronization.
  2. Start logging errors which occur while dispatching a message in a Bus, since that is a potential insertion.
  3. Start logging errors which occur while delivering an entity update to subscribers, for the same reason.

The framework version is set to 1.0.1.

@dmdashenkov dmdashenkov self-assigned this Aug 7, 2019
@codecov
Copy link

codecov bot commented Aug 7, 2019

Codecov Report

Merging #1139 into master will increase coverage by 0.01%.
The diff coverage is 91.3%.

@@             Coverage Diff              @@
##             master    #1139      +/-   ##
============================================
+ Coverage     92.24%   92.25%   +0.01%     
  Complexity     4151     4151              
============================================
  Files           546      546              
  Lines         13143    13163      +20     
  Branches        745      743       -2     
============================================
+ Hits          12124    12144      +20     
- Misses          790      792       +2     
+ Partials        229      227       -2

@dmdashenkov dmdashenkov marked this pull request as ready for review August 7, 2019 16:49
@dmdashenkov dmdashenkov requested a review from armiol August 7, 2019 16:52
@dmdashenkov
Copy link
Contributor Author

@armiol, PTAL.

@armiol armiol merged commit e0310f3 into master Aug 8, 2019
@armiol armiol deleted the synchronize-subscription-registry branch August 8, 2019 17:18
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