-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GOCBC-1626: Handle operations after close gracefully
Motivation ---------- At the moment if cluster close is called twice or operations are performed after close then the SDK can panic. Changes ------- Add logic to connection managers to fast fail any ops when a provider is fetched and the manager is closed. Add logic to return error when connection managers are closed twice. Add provider controllers which are used with helper functions which increment wait groups belonging to the connection managers. Update all public functions that perform ops to first call the contoller helper to get a provider. Add wait groups to connection managers and block on them on close. Change-Id: I17d16de1fa6aebfad09b267aaaebe2424be73893 Reviewed-on: https://review.couchbase.org/c/gocb/+/210690 Reviewed-by: Charles Dixon <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Dimitris Christodoulou <[email protected]>
- Loading branch information
Showing
56 changed files
with
2,181 additions
and
2,214 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
Oops, something went wrong.