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

Clickhouse: test-container recipe flaky #186

Open
laskoviymishka opened this issue Jan 25, 2025 · 1 comment
Open

Clickhouse: test-container recipe flaky #186

laskoviymishka opened this issue Jan 25, 2025 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@laskoviymishka
Copy link
Contributor

see related: testcontainers/testcontainers-go#2848

@laskoviymishka laskoviymishka added bug Something isn't working help wanted Extra attention is needed labels Jan 25, 2025
@laskoviymishka
Copy link
Contributor Author

One more example of failed run: https://github.com/doublecloud/transfer/actions/runs/12961827125/job/36157606076

=== FAIL: pkg/providers/clickhouse/tests/storagetest TestShardedStorage (893.05s)
2025/01/25 04:33:01 github.com/testcontainers/testcontainers-go - Connected to docker: 
  Server Version: 26.1.3
  API Version: 1.44
  Operating System: Ubuntu 24.04.1 LTS
  Total Memory: 15990 MB
  Resolved Docker Host: unix:///var/run/docker.sock
  Resolved Docker Socket Path: /var/run/docker.sock
  Test SessionID: 6e96af1bc97f27fff5c6497af3ba0bf2ba1019dbdd5fbb7fc5bacebddde5ec6e
  Test ProcessID: 756604f4-3de3-4c72-a75e-e56f8f708a70
2025/01/25 04:33:01 🔥 Reaper obtained from Docker for this test session 4418dc93589185c3fbf4c9a67c07a0b19761f86808d4d1431ba9a8f251f050c1
2025/01/25 04:33:01 🐳 Creating container for image zookeeper:3.7
2025/01/25 04:33:01 ✅ Container created: 6ddd2776d05d
2025/01/25 04:33:01 🐳 Starting container: 6ddd2776d05d
2025/01/25 04:33:01 ✅ Container started: 6ddd2776d05d
2025/01/25 04:33:01 🚧 Waiting for container id 6ddd2776d05d image: zookeeper:3.7. Waiting for: &{Port:2181/tcp timeout:<nil> PollInterval:100ms}
2025/01/25 04:33:02 🔔 Container is ready: 6ddd2776d05d
zk: 0.0.0.0:32787 
2025/01/25 04:33:02 🐳 Creating container for image clickhouse/clickhouse-server:23.3.8.21-alpine
2025/01/25 04:33:02 ✅ Container created: b6df5d19b350
2025/01/25 04:33:02 🐳 Starting container: b6df5d19b350
2025/01/25 04:33:02 ✅ Container started: b6df5d19b350
2025.01.25 05:33:14.219349 [ 1 ] {} <Information> Application: Listening for MySQL compatibility protocol: 0.0.0.0:9004
2025.01.25 05:33:14.219478 [ 1 ] {} <Information> Application: Listening for PostgreSQL compatibility protocol: 0.0.0.0:9005
2025.01.25 05:33:14.219596 [ 1 ] {} <Information> Application: Listening for replica communication (interserver): http://0.0.0.0:9009
2025.01.25 05:33:14.219660 [ 638 ] {} <Debug> DDLWorker: Started DDLWorker cleanup thread
2025.01.25 05:33:14.221[846](https://github.com/doublecloud/transfer/actions/runs/12961827125/job/36157606076#step:7:883) [ 639 ] {} <Information> ZooKeeperClient: Connected to ZooKeeper at 172.17.0.22:2181 with session_id 72057610567024641
2025.01.25 05:33:14.222846 [ 1 ] {} <Information> Application: Ready for connections.
2025.01.25 05:33:14.226283 [ 639 ] {} <Debug> DDLWorker: Initialized DDLWorker thread
2025.01.25 05:33:14.226301 [ 639 ] {} <Debug> DDLWorker: Scheduling tasks
2025.01.25 05:33:14.226318 [ 638 ] {} <Debug> DDLWorker: Cleaning queue
2025.01.25 05:33:14.227023 [ 639 ] {} <Debug> DDLWorker: No tasks to schedule
2025.01.25 05:33:14.227033 [ 639 ] {} <Debug> DDLWorker: Waiting for queue updates
2025.01.25 05:33:21.141628 [ 632 ] {} <Debug> SystemLog (system.asynchronous_metric_log): Will use existing table system.asynchronous_metric_log for AsynchronousMetricLog
2025.01.25 05:33:21.641353 [ 625 ] {} <Debug> SystemLog (system.trace_log): Will use existing table system.trace_log for TraceLog
2025.01.25 05:33:21.643724 [ 629 ] {} <Debug> SystemLog (system.metric_log): Will use existing table system.metric_log for MetricLog

panic: unable to prepare container: unable to start clickhouse container: failed to start container: context deadline exceeded

goroutine 1 [running]:
github.com/doublecloud/transfer/pkg/providers/clickhouse/recipe.MustTarget(...)
	/home/runner/work/transfer/transfer/pkg/providers/clickhouse/recipe/chrecipe.go:131
github.com/doublecloud/transfer/pkg/providers/clickhouse/tests/with_transformer.init()
	/home/runner/work/transfer/transfer/pkg/providers/clickhouse/tests/with_transformer/transformer_test.go:26 +0x21e
FAIL	github.com/doublecloud/transfer/pkg/providers/clickhouse/tests/with_transformer	12.625s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant