-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FABN-951: Fix event handling concurreny issue
Event handling strategy instances have transaction-specific state so a separate instance must be used for each transaction. They cannot be shared between transactions. Event hubs should be obtained from the EventHubFactory by each new event handler strategy instance, since this deals with reconnecting disconnected event hubs. We should not store only the currently connected event hubs in the manager as we will: 1. Never connect event hubs that were initially unavailable as they come back online. 2. Gradually lose working event hubs over time if there are network outages or maintenance on peers, until it is not possible to submit any transactions. 3. Potentially pass disconnected event hubs to the listener. Closing the underlying Channel cleans up the event hubs, so the Channel should be closed when the Network is disposed rather than trying to store and explicitly clean up event hubs in the fabric-network code. At least for now...! Change-Id: Ia5dc24ca9b7501fe5a1eebb867b0ea3277080ab4 Signed-off-by: Mark S. Lewis <[email protected]>
- Loading branch information
1 parent
d7b354e
commit 3243d67
Showing
13 changed files
with
144 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.