[JCBC-231] Handle View Errors (Vbucket & Merge) appropriately Created: 02/Feb/13  Updated: 19/Jul/13  Resolved: 19/Jul/13

Status: Resolved
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1.0, 1.1.1
Fix Version/s: 1.1.8
Security Level: Public

Type: Improvement Priority: Critical
Reporter: Michael Nitschinger Assignee: Michael Nitschinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicates JCBC-313 View Requests >= HTTP 300 should be r... Resolved
is duplicated by JCBC-307 Hybrid workload with rebalance scenar... Resolved

During rebalance out it can happen that the view node is still able to service http connections, but fails with the following errors:

- error Reason: A view spec can not consist of merges exclusively.
- no_active_vbuckets Reason: Cannot execute view query since the node has no active vbuckets

If this is happening, the client needs to deal with it. Appropriate solution needs still to be dicussed, but one approach could be to retry on a different node. Note that this needs to work for both async and sync calls.

Comment by Michael Nitschinger [ 02/Feb/13 ]
The corresponding server ticket can be found here: http://www.couchbase.com/issues/browse/MB-7661
Comment by Michael Nitschinger [ 19/Jul/13 ]
See JCBC-313 which now retries these kind of responses properly.
Generated at Sun Nov 23 14:28:52 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.