Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
-
1
Description
This has been a tough one to hunt down and figure out but the situation we are having is that we have multiple buckets and one of the buckets has a view design document on it. We've come to the conclusion that if you have a single cluster connection with multiple buckets you may have problems running ViewQuery or even UpsertDesignDocument.
Step to recreate
Create bucket A
Create bucket B
Add View to bucket
Run View query against bucket A
The issue here is that in our connection manager we are routing view queries to the "agent group" provider. This means that they go the gocbcore "cluster agent" which is not designed to handle or route bucket level operations. The fix is going to be quite simple - change the connection manager to get the agent which is bound against the bucket instead of the agent group.