Skip to content

[Flaky test] TestNegativeCases - Log in goroutine after TestNegativeCases has completed #47698

@belimawr

Description

@belimawr

Flaky Test

Stack Trace

=== Failed
=== FAIL: x-pack/filebeat/input/cometd  (0.00s)
PASS
panic: Log in goroutine after TestNegativeCases has completed: 2025-11-14T17:29:10.589Z	INFO	cometd	Input worker has stopped.	{"pubsub_channel": "channel_name"}
goroutine 45 [running]:
testing.(*common).logDepth(0xc0002008c0, {0xc000111c00, 0x61}, 0x3)
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1064 +0x4b4
testing.(*common).log(...)
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1046
testing.(*common).Logf(0xc0002008c0, {0x153b480?, 0x400?}, {0xc000482ae0?, 0x0?, 0x2?})
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1097 +0x54
go.uber.org/zap/zaptest.TestingWriter.Write({{0x7d8e4d325b38?, 0xc0002008c0?}, 0x40?}, {0xc000121400?, 0x62, 0xc000121400?})
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zaptest/logger.go:146 +0xdb
go.uber.org/zap/zapcore.(*ioCore).Write(0xc000206fc0, {0x0, {0xc23df799a328e0f2, 0x42ecf21e, 0x1f1c300}, {0x153d172, 0x6}, {0x1551610, 0x19}, {0x0, ...}, ...}, ...)
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zapcore/core.go:99 +0xb5
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00051c000, {0x0, 0x0, 0x0})
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:253 +0x119
go.uber.org/zap.(*SugaredLogger).log(0xc00011ca78, 0x0, {0x0?, 0x0?}, {0xc00016de18?, 0x1?, 0x1?}, {0x0, 0x0, 0x0})
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/sugar.go:355 +0xec
go.uber.org/zap.(*SugaredLogger).Info(...)
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/sugar.go:155
github.com/elastic/elastic-agent-libs/logp.(*Logger).Info(...)
	/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/github.com/elastic/[email protected]/logp/logger.go:186
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1.1()
	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1763140818762033913/elastic/beats-xpack-filebeat/x-pack/filebeat/input/cometd/input.go:77 +0x602
created by github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1 in goroutine 36
	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1763140818762033913/elastic/beats-xpack-filebeat/x-pack/filebeat/input/cometd/input.go:41 +0x93
FAIL	github.com/elastic/beats/v7/x-pack/filebeat/input/cometd	1.139s

Metadata

Metadata

Assignees

Labels

Team:Obs-InfraObsLabel for the Observability Infrastructure Monitoring teamflaky-testUnstable or unreliable test cases.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions