-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple bucket open #56
Comments
I'm dealing with this issue currently. I guess the workaround is to spawn multiple processes. My use case is connecting to two clusters, and one bucket in each. |
@brigand I fixed it on master, can you try if that works for you? |
I'm on the latest code from master, so maybe it's a separate issue with multiple clusters. Using tokio=0.2, I unfortunately didn't commit the broken code, but this is the error from when I tried to connect to two clusters in one process.
|
@brigand unfortunately I think brew install libcouchbase is installing lcb2, not lcb3 which is needed. this change has been closed but it needs to go again at some point: Homebrew/homebrew-core#49103 Note that it might be easier for you if you just use |
Actually, now that I read this again The callback attempt to subtract with overflow is weird but that looks like a real issue that I'll try to fix on master |
I think my connection to the couchbase server is actually the problem here, and it's just a bug with error reporting. I was running it with a port-forwarding layer between the client and couchbase server, and it's likely doing something weird to the connection. Even with separate processes I get "A generic / unknown error happened" when talking to that instance, but the code works fine with a local instance of couchbase. Likely a user error on my part. |
@brigand we do not support running a proxy/port forwarding between client and server, and the reason is the client looks at a config it gets from the server, including ports - you'll just be running into issues down the road, please don't do it :) w.r.t the actual issue, yeah, I think the unwraps need to be fixed and proper error reporting needs to be in place. I'll close this ticket then and will open a new one with your bootstrap diagnostics issue so we can track it properly. |
The lcb run loop needs to keep track on N buckets (also taking into account GCCCP on the first one) and then also loop all of them for readiness. Also we need code in place that dispatches it to the right one
The text was updated successfully, but these errors were encountered: