Skip to content
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

Breaking change in CockroachDB CLI interface for versions 20.2+.* #3571

Closed
lbialy opened this issue Dec 8, 2020 · 2 comments · Fixed by #3608
Closed

Breaking change in CockroachDB CLI interface for versions 20.2+.* #3571

lbialy opened this issue Dec 8, 2020 · 2 comments · Fixed by #3608

Comments

@lbialy
Copy link

lbialy commented Dec 8, 2020

Hi,

I have tried using versions 20.2.0 and 20.2.2 of CockroachDB with CockroachContainer and sadly the container crashes with the following output:

ERROR: no --join flags provided to 'cockroach start'

HINT: Consider using 'cockroach init' or 'cockroach start-single-node' instead

Failed running "start"

Testcontainers itself hangs on this log line:

[2020-12-08 17:27:02,603] [INFO] [🐳 [cockroachdb/cockroach:v20.2.0]] [] [ScalaTest-run] - Waiting for database connection to become available at jdbc:postgresql://localhost:32830/postgres?reWriteBatchedInserts=true using query 'SELECT 1' MDC: {}

but doesn't fail even though the container itself is EXITED(1). It then assumes everything is fine and continues the test framework execution.

@giger85
Copy link
Contributor

giger85 commented Dec 11, 2020

Since v20.2, below command is not working.

According to v19.2 document, start-single-node command works.

New in v19.2: This page explains the cockroach start-single-node command, which you use to start a single-node cluster with replication disabled. A single-node cluster is all you need for quick SQL testing or app development.

So, start command need to be fixed.

@giger85
Copy link
Contributor

giger85 commented Dec 14, 2020

According to release-support-policy, current default tag (v19.1.1) can not be supported assistance.

  • Assistance Support ends (EOL Date) v19.1: 11/1/20

giger85 pushed a commit to giger85/testcontainers-java that referenced this issue Dec 16, 2020
Issue: testcontainers#3571
This also includes changing default tag version (to v19.2.11)
bsideup added a commit that referenced this issue Feb 6, 2021
Closes #3571
This also includes changing default tag version (to v19.2.11)

Co-authored-by: Junho, Kim <[email protected]>
Co-authored-by: Sergei Egorov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants