Skip to content

[Bug]: random clickhouse test failures #2848

Open

Description

Testcontainers version

0.34.0

Using the latest Testcontainers version?

Yes

Host OS

N/A

Host arch

N/A

Go version

N/A

Docker version

N/A

Docker info

N/A

What happened?

Tests are randomly failing in CI with clickhouse_test.go:290: [handshake] unexpected packet [72] from server see:
https://github.com/testcontainers/testcontainers-go/actions/runs/11478021546/job/31941936972?pr=2846

Relevant log output

=== FAIL: . TestClickHouseWithZookeeper (unknown)
2024/10/23 11:11:19 🐳 Creating container for image zookeeper:3.7
2024/10/23 11:11:19 ✅ Container created: 3205da1f43da
2024/10/23 11:11:19 🐳 Starting container: 3205da1f43da
2024/10/23 11:11:19 ✅ Container started: 3205da1f43da
2024/10/23 11:11:19 ⏳ Waiting for container id 3205da1f43da image: zookeeper:3.7. Waiting for: &{Port:2181/tcp timeout: PollInterval:100ms skipInternalCheck:false}
2024/10/23 11:11:19 🔔 Container is ready: 3205da1f43da
2024/10/23 11:11:19 🐳 Creating container for image clickhouse/clickhouse-server:23.3.8.21-alpine
2024/10/23 11:11:20 ✅ Container created: 2916bb606516
2024/10/23 11:11:20 🐳 Starting container: 2916bb606516
2024/10/23 11:11:20 ✅ Container started: 2916bb606516
2024/10/23 11:11:20 ⏳ Waiting for container id 2916bb606516 image: clickhouse/clickhouse-server:23.3.8.21-alpine. Waiting for: &{timeout: deadline: Strategies:[0xc00052ba70]}
2024/10/23 11:11:23 🔔 Container is ready: 2916bb606516
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
clickhouse_test.go:290: [handshake] unexpected packet [72] from server
coverage: 85.0% of statements
ERROR rerun aborted because previous run had a suspected panic and some test may not have run
make: *** [../../commons-test.mk:42: test-unit] Error 3

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugAn issue with the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions