-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
[Bug]: Couchbase containers intermittently hang on startup #2649
Comments
Hi @couchbaseEd thanks for raising this issue. Do you feel the wait strategy in the container should be refined to cover that use case? Are you working for couchbase btw? That would help a lot in creating the perfect experience for the module |
Hi yes I do work for Couchbase. Ive got a pr which just checks the response for an error and adds a backoff similar to the |
Could this also be related? testcontainers/testcontainers-java#7049 |
It could well be but its difficult to know without actually seeing the response. The issue is the cluster does an initial rebalance on start up when adding services which needs to finish before we can do anything with it. |
I'm running into this issue with Java, trying to use couchbase with TestContainers. Any word on a resolution? |
@pfconrey have you opened an issue in there? @eddumelendez or @kiview will be glad to assist you there. |
Testcontainers version
0.32.0
Using the latest Testcontainers version?
Yes
Host OS
macOS Sonoma
Host arch
ARM
Go version
1.22.2
Docker version
Client: Version: 27.0.3 API version: 1.46 Go version: go1.21.11 Git commit: 7d4bcd8 Built: Fri Jun 28 23:59:41 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: 662f78c Built: Sat Jun 29 00:02:44 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.18 GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e runc: Version: 1.7.18 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
Sometimes the creation of a Couchbase container hangs. When making the call to create the primary index the response isn't checked. This means that any errors returned in the response body are not caught and hence the
isPrimaryIndexOnline
polls until the timeout. In our case this occurs if we try to create the index to early before the bucket is ready. See output from a test app with some print debugging below.Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: