Skip to content

[Flaky Test] metricbeat/module/kafka/consumer TestData #42808

Open
@AndersonQ

Description

Flaky Test

the panic comes from compose.EnsureUp(t, "kafka",[...], which seem to be due the kafka container not being ready

Stack Trace

=== FAIL: metricbeat/module/kafka/consumer TestData (300.04s)
2025-02-20 11:26:47 CEST	panic: timeout waiting for lock [recovered]
2025-02-20 11:26:47 CEST		panic: timeout waiting for lock
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	goroutine 19 [running]:
2025-02-20 11:26:47 CEST	testing.tRunner.func1.2({0x140cec0, 0x177f950})
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1631 +0x24a
2025-02-20 11:26:47 CEST	testing.tRunner.func1()
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1634 +0x377
2025-02-20 11:26:47 CEST	panic({0x140cec0?, 0x177f950?})
2025-02-20 11:26:47 CEST		/usr/local/go/src/runtime/panic.go:770 +0x132
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Lock(0xc0002bc4a0)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:278 +0x1f5
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).getServices(0xc0002bc4a0, {0xc000053460, 0x1, 0x1})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:337 +0x5d
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Start(0xc0002bc4a0, {0x1600bb9, 0x5}, {0x4?, {0x0?, 0x0?}, 0x0?, 0xc0000902a0?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:136 +0xb7
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp.func1()
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:77 +0x6e
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp({0x179aed0, 0xc00037c820}, {0x1600bb9, 0x5}, {0xc00048df48, 0x2, 0x603?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:100 +0x3c8
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/metricbeat/module/kafka/consumer.TestData(0xc00037c820)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/metricbeat/module/kafka/consumer/consumer_integration_test.go:37 +0xa5
2025-02-20 11:26:47 CEST	testing.tRunner(0xc00037c820, 0x1677648)
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1689 +0xfb
2025-02-20 11:26:47 CEST	created by testing.(*T).Run in goroutine 1
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1742 +0x390
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	=== FAIL: metricbeat/module/kafka/consumergroup TestData (300.04s)
2025-02-20 11:26:47 CEST	panic: timeout waiting for lock [recovered]
2025-02-20 11:26:47 CEST		panic: timeout waiting for lock
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	goroutine 19 [running]:
2025-02-20 11:26:47 CEST	testing.tRunner.func1.2({0x15bc1c0, 0x19d22c0})
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1631 +0x24a
2025-02-20 11:26:47 CEST	testing.tRunner.func1()
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1634 +0x377
2025-02-20 11:26:47 CEST	panic({0x15bc1c0?, 0x19d22c0?})
2025-02-20 11:26:47 CEST		/usr/local/go/src/runtime/panic.go:770 +0x132
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Lock(0xc0003710f0)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:278 +0x1f5
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).getServices(0xc0003710f0, {0xc000053460, 0x1, 0x1})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:337 +0x5d
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Start(0xc0003710f0, {0x17e10a6, 0x5}, {0x4?, {0x0?, 0x0?}, 0x0?, 0xc0000902a0?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:136 +0xb7
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp.func1()
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:77 +0x6e
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp({0x19f09d0, 0xc000319040}, {0x17e10a6, 0x5}, {0xc00048df48, 0x2, 0x1fa4a28?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:100 +0x3c8
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/metricbeat/module/kafka/consumergroup.TestData(0xc000319040)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/metricbeat/module/kafka/consumergroup/consumergroup_integration_test.go:43 +0xcd
2025-02-20 11:26:47 CEST	testing.tRunner(0xc000319040, 0x1862e18)
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1689 +0xfb
2025-02-20 11:26:47 CEST	created by testing.(*T).Run in goroutine 1
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1742 +0x390
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	=== FAIL: metricbeat/module/kafka/partition TestData (300.06s)
2025-02-20 11:26:47 CEST	panic: timeout waiting for lock [recovered]
2025-02-20 11:26:47 CEST		panic: timeout waiting for lock
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	goroutine 19 [running]:
2025-02-20 11:26:47 CEST	testing.tRunner.func1.2({0x15bc760, 0x19d0590})
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1631 +0x24a
2025-02-20 11:26:47 CEST	testing.tRunner.func1()
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1634 +0x377
2025-02-20 11:26:47 CEST	panic({0x15bc760?, 0x19d0590?})
2025-02-20 11:26:47 CEST		/usr/local/go/src/runtime/panic.go:770 +0x132
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Lock(0xc0003730f0)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:278 +0x1f5
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).getServices(0xc0003730f0, {0xc00045a690, 0x1, 0x1})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:337 +0x5d
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Start(0xc0003730f0, {0x17e2346, 0x5}, {0x4?, {0x0?, 0x0?}, 0x0?, 0xc00011f208?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:136 +0xb7
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp.func1()
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:77 +0x6e
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp({0x19eef10, 0xc0002fd380}, {0x17e2346, 0x5}, {0xc000449f50, 0x2, 0x1fa4488?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:100 +0x3c8
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/metricbeat/module/kafka/partition.TestData(0xc0002fd380)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/metricbeat/module/kafka/partition/partition_integration_test.go:47 +0xaf
2025-02-20 11:26:47 CEST	testing.tRunner(0xc0002fd380, 0x1864d48)
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1689 +0xfb
2025-02-20 11:26:47 CEST	created by testing.(*T).Run in goroutine 1
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1742 +0x390
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	=== FAIL: metricbeat/module/kafka/producer TestData (300.05s)
2025-02-20 11:26:47 CEST	panic: timeout waiting for lock [recovered]
2025-02-20 11:26:47 CEST		panic: timeout waiting for lock
2025-02-20 11:26:47 CEST	
2025-02-20 11:26:47 CEST	goroutine 6 [running]:
2025-02-20 11:26:47 CEST	testing.tRunner.func1.2({0x140cec0, 0x177f950})
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1631 +0x24a
2025-02-20 11:26:47 CEST	testing.tRunner.func1()
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1634 +0x377
2025-02-20 11:26:47 CEST	panic({0x140cec0?, 0x177f950?})
2025-02-20 11:26:47 CEST		/usr/local/go/src/runtime/panic.go:770 +0x132
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Lock(0xc0002ca4e0)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:278 +0x1f5
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).getServices(0xc0002ca4e0, {0xc00010f420, 0x1, 0x1})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:337 +0x5d
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.(*Project).Start(0xc0002ca4e0, {0x1600bb9, 0x5}, {0x4?, {0x0?, 0x0?}, 0x0?, 0xc000162298?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/project.go:136 +0xb7
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp.func1()
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:77 +0x6e
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/libbeat/tests/compose.EnsureUp({0x179aed0, 0xc00037c820}, {0x1600bb9, 0x5}, {0xc000173f48, 0x2, 0x603?})
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/libbeat/tests/compose/compose.go:100 +0x3c8
2025-02-20 11:26:47 CEST	github.com/elastic/beats/v7/metricbeat/module/kafka/producer.TestData(0xc00037c820)
2025-02-20 11:26:47 CEST		/go/src/github.com/elastic/beats/metricbeat/module/kafka/producer/producer_integration_test.go:37 +0xa5
2025-02-20 11:26:47 CEST	testing.tRunner(0xc00037c820, 0x1677648)
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1689 +0xfb
2025-02-20 11:26:47 CEST	created by testing.(*T).Run in goroutine 1
2025-02-20 11:26:47 CEST		/usr/local/go/src/testing/testing.go:1742 +0x390

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions