Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JCBC-692: fix lock on creating DefaultQueryResult
Motivation ---------- Users reported that all they get when trying to do a n1ql query is a timeout. This comes from a race condition/deadlock that happens when instantiating the DefaultQueryResult (blocking on each component of the AsyncQueryResult). Modifications ------------- Only ever block once, in CouchbaseBucket, instead of multiple times in the DefaultQueryResult constructor, by using a zip. Constructor now only deals with collections or scalar types, not with Observables. Results ------- Acquiring a query result synchronously should now work as expected. Change-Id: I535d51ba9d67077fba99d209f936efdd5458802d Reviewed-on: http://review.couchbase.org/45868 Tested-by: Simon Baslé <simon@couchbase.com> Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
- Loading branch information
1 parent
1ded28a
commit 401f57a
Showing
2 changed files
with
45 additions
and
54 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