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

Flaky Test [Build&Test / filebeat-build / TestDefaultHarvesterGroup – github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile] #26353

Closed
Tracked by #31517
elasticmachine opened this issue Jun 16, 2021 · 5 comments
Labels
ci-reported Issues that have been automatically reported from the CI flaky-test Unstable or unreliable test cases. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@elasticmachine
Copy link
Collaborator

Flaky Test

Error details

Failed

Stack Trace

=== RUN   TestDefaultHarvesterGroup
--- FAIL: TestDefaultHarvesterGroup (0.07s)

@elasticmachine elasticmachine added flaky-test Unstable or unreliable test cases. ci-reported Issues that have been automatically reported from the CI labels Jun 16, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 16, 2021
@elasticmachine
Copy link
Collaborator Author

Flaky Test

Error details

Failed

Stack Trace

=== RUN   TestDefaultHarvesterGroup
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_is_started_in_a_goroutine
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_can_be_stopped_and_removed_from_bookkeeper
    harvester_test.go:135: flaky test: https://github.com/elastic/beats/issues/25805
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_for_same_source_cannot_be_started
coverage: 42.5% of statements
panic: test timed out after 10m0s

goroutine 69 [running]:
testing.(*M).startAlarm.func1()
	/usr/local/go/src/testing/testing.go:1700 +0xe5
created by time.goFunc
	/usr/local/go/src/time/sleep.go:180 +0x45

goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc0006e0180, 0xcdb6e1, 0x19, 0xcfc7e8, 0x493101)
	/usr/local/go/src/testing/testing.go:1239 +0x2da
testing.runTests.func1(0xc000103680)
	/usr/local/go/src/testing/testing.go:1511 +0x78
testing.tRunner(0xc000103680, 0xc00036fda8)
	/usr/local/go/src/testing/testing.go:1193 +0xef
testing.runTests(0xc000122be8, 0x1247a00, 0x11, 0x11, 0xc02c9c9a28ac24b6, 0x8bb3c7e7a4, 0x1255b60, 0xcd3524)
	/usr/local/go/src/testing/testing.go:1509 +0x2fe
testing.(*M).Run(0xc00015e600, 0x0)
	/usr/local/go/src/testing/testing.go:1417 +0x1eb
main.main()
	_testmain.go:141 +0x1c5

goroutine 62 [chan receive, 9 minutes]:
testing.(*T).Run(0xc0006e0600, 0xcee2bc, 0x34, 0xc0005b7390, 0x2a24c301)
	/usr/local/go/src/testing/testing.go:1239 +0x2da
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.TestDefaultHarvesterGroup(0xc0006e0180)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:155 +0x18a
testing.tRunner(0xc0006e0180, 0xcfc7e8)
	/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1238 +0x2b3

goroutine 66 [sleep]:
time.Sleep(0x989680)
	/usr/local/go/src/runtime/time.go:193 +0xd2
github.com/elastic/beats/v7/libbeat/tests/resources.(*GoroutinesChecker).WaitUntilIncreased(0xc000071e28, 0x2)
	/go/src/github.com/elastic/beats/libbeat/tests/resources/goroutines.go:95 +0x2c
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.TestDefaultHarvesterGroup.func5(0xc0006e0600)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:166 +0x251
testing.tRunner(0xc0006e0600, 0xc0005b7390)
	/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1238 +0x2b3

goroutine 68 [chan receive, 9 minutes]:
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.blockUntilCancelOnRun(0xc0005b7450, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:354 +0x4e
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.(*mockHarvester).Run(0xc00012d240, 0xc0005b7450, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:333 +0x19b
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.startHarvester.func1(0x7f327c588dc0, 0xc000117ec0, 0x0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester.go:204 +0x9a8
github.com/elastic/go-concert/unison.(*TaskGroup).Go.func1(0xc000199b10, 0xc000117f00)
	/go/pkg/mod/github.com/elastic/[email protected]/unison/taskgroup.go:124 +0x99
created by github.com/elastic/go-concert/unison.(*TaskGroup).Go
	/go/pkg/mod/github.com/elastic/[email protected]/unison/taskgroup.go:122 +0xda

@kaiyan-sheng kaiyan-sheng added the Team:Elastic-Agent Label for the Agent team label Jun 23, 2021
@elasticmachine
Copy link
Collaborator Author

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 23, 2021
@elasticmachine
Copy link
Collaborator Author

Flaky Test

Error details

Failed

Stack Trace

=== RUN   TestDefaultHarvesterGroup
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_is_started_in_a_goroutine
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_can_be_stopped_and_removed_from_bookkeeper
    harvester_test.go:135: flaky test: https://github.com/elastic/beats/issues/25805
=== RUN   TestDefaultHarvesterGroup/assert_a_harvester_for_same_source_cannot_be_started
coverage: 40.0% of statements
panic: test timed out after 10m0s

goroutine 52 [running]:
testing.(*M).startAlarm.func1()
	/usr/local/go/src/testing/testing.go:1700 +0xe5
created by time.goFunc
	/usr/local/go/src/time/sleep.go:180 +0x45

goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc00066cc00, 0xcdcab1, 0x19, 0xcfdbb8, 0x493101)
	/usr/local/go/src/testing/testing.go:1239 +0x2da
testing.runTests.func1(0xc000582300)
	/usr/local/go/src/testing/testing.go:1511 +0x78
testing.tRunner(0xc000582300, 0xc00063fda8)
	/usr/local/go/src/testing/testing.go:1193 +0xef
testing.runTests(0xc0005f8000, 0x1249b00, 0x11, 0x11, 0xc02ee0460fc5dd5b, 0x8bb59ca0c4, 0x1257c60, 0xcd48f4)
	/usr/local/go/src/testing/testing.go:1509 +0x2fe
testing.(*M).Run(0xc0005f4000, 0x0)
	/usr/local/go/src/testing/testing.go:1417 +0x1eb
main.main()
	_testmain.go:141 +0x1c5

goroutine 45 [chan receive, 9 minutes]:
testing.(*T).Run(0xc00066d080, 0xcef68c, 0x34, 0xc0005af750, 0xd9d101)
	/usr/local/go/src/testing/testing.go:1239 +0x2da
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.TestDefaultHarvesterGroup(0xc00066cc00)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:155 +0x18a
testing.tRunner(0xc00066cc00, 0xcfdbb8)
	/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1238 +0x2b3

goroutine 49 [sleep]:
time.Sleep(0x989680)
	/usr/local/go/src/runtime/time.go:193 +0xd2
github.com/elastic/beats/v7/libbeat/tests/resources.(*GoroutinesChecker).WaitUntilIncreased(0xc00006fe28, 0x2)
	/go/src/github.com/elastic/beats/libbeat/tests/resources/goroutines.go:95 +0x2c
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.TestDefaultHarvesterGroup.func5(0xc00066d080)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:166 +0x251
testing.tRunner(0xc00066d080, 0xc0005af750)
	/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1238 +0x2b3

goroutine 51 [chan receive, 9 minutes]:
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.blockUntilCancelOnRun(0xc0005af810, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:354 +0x4e
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.(*mockHarvester).Run(0xc0005b07a0, 0xc0005af810, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester_test.go:333 +0x19b
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.startHarvester.func1(0x7fc2c5144f50, 0xc0005b3c00, 0x0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/harvester.go:206 +0x9a8
github.com/elastic/go-concert/unison.(*TaskGroup).Go.func1(0xc000672ad0, 0xc0005b3c40)
	/go/pkg/mod/github.com/elastic/[email protected]/unison/taskgroup.go:124 +0x99
created by github.com/elastic/go-concert/unison.(*TaskGroup).Go
	/go/pkg/mod/github.com/elastic/[email protected]/unison/taskgroup.go:122 +0xda

@kvch kvch removed their assignment Oct 7, 2021
@cmacknz cmacknz added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed Team:Elastic-Agent Label for the Agent team labels Apr 5, 2022
@elasticmachine
Copy link
Collaborator Author

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

@cmacknz
Copy link
Member

cmacknz commented May 27, 2022

Hasn't repeated in a long time. Closing.

@cmacknz cmacknz closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-reported Issues that have been automatically reported from the CI flaky-test Unstable or unreliable test cases. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

4 participants