elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.15k stars 4.91k forks source link

Flaky Test [Extended / x-pack/filebeat-cloudAWS / TestInput – github.com/elastic/beats/v7/x-pack/filebeat/input/cometd] #33423

Open kaiyan-sheng opened 1 year ago

kaiyan-sheng commented 1 year ago

Flaky Test

Stack Trace

 === RUN   TestInput
{"log.level":"info","@timestamp":"2022-10-20T15:08:43.994Z","log.logger":"cometd","log.origin":{"file.name":"cometd/input.go","file.line":144},"message":"Initialized cometd input.","pubsub_channel":"channel_name1","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-10-20T15:08:43.994Z","log.logger":"cometd","log.origin":{"file.name":"cometd/input.go","file.line":35},"message":"Input worker has started.","pubsub_channel":"channel_name1","ecs.version":"1.6.0"}
coverage: 69.0% of statements
panic: test timed out after 10m0s

goroutine 20 [running]:
testing.(*M).startAlarm.func1()
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:2029 +0x8e
created by time.goFunc
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/time/sleep.go:176 +0x32

goroutine 1 [chan receive]:
testing.(*T).Run(0xc0000be9c0, {0x1282ca8?, 0x931ba5?}, 0x12d58e0)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1487 +0x37a
testing.runTests.func1(0xc000464120?)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1839 +0x6e
testing.tRunner(0xc0000be9c0, 0xc00036fca0)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1439 +0x102
testing.runTests(0xc0000b4f00?, {0x1bd2c60, 0xe, 0xe}, {0x7fd299b9d108?, 0x40?, 0x1d71dc0?})
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1837 +0x457
testing.(*M).Run(0xc0000b4f00)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1719 +0x5d9
main.main()
    _testmain.go:127 +0x255

goroutine 9 [semacquire]:
sync.runtime_Semacquire(0xc000459801?)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0x0?)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/sync/waitgroup.go:136 +0x52
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Stop(0xc0000b6dc0)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:151 +0x45
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.TestInput(0x0?)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/cometd_integration_test.go:106 +0x71e
testing.tRunner(0xc0000beb60, 0x12d58e0)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/.gvm/versions/go1.18.7.linux.amd64/src/testing/testing.go:1486 +0x35f

goroutine 16 [chan receive]:
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.NewInput.func1()
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:119 +0x38
created by github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.NewInput
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:118 +0x357

goroutine 34 [chan send]:
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*eventCaptor).OnEvent(0x0?, {{0x7d1c1f, 0xedae35b7c, 0x0}, 0xc0001161b0, 0xc000116120, {0x110cc40, 0xc000112090}, 0x0})
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/cometd_integration_test.go:41 +0x8b
github.com/elastic/beats/v7/filebeat/channel.SubOutlet.func1()
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/filebeat/channel/util.go:45 +0x123
created by github.com/elastic/beats/v7/filebeat/channel.SubOutlet
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/filebeat/channel/util.go:43 +0x12d

goroutine 35 [select]:
github.com/elastic/beats/v7/filebeat/channel.(*subOutlet).OnEvent(0xc000464f00, {{0x7d1c1f, 0xedae35b7c, 0x0}, 0xc0001161b0, 0xc000116120, {0x110cc40, 0xc000112090}, 0x0})
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/filebeat/channel/util.go:83 +0x228
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).run(0xc0000b6dc0)
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:76 +0x463
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1.1()
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:45 +0x339
created by github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1
    /var/lib/jenkins/workspace/PR-33394-5-0581341e-ae2e-46ac-aa5f-f23c24cfa660/src/github.com/elastic/beats/x-pack/filebeat/input/cometd/input.go:34 +0x9e
elasticmachine commented 1 year ago

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)