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] TestFilestreamTruncate #25217

Closed
andrewkroh opened this issue Apr 21, 2021 · 1 comment · Fixed by #25273
Closed

[Flaky Test] TestFilestreamTruncate #25217

andrewkroh opened this issue Apr 21, 2021 · 1 comment · Fixed by #25273
Labels
Filebeat Filebeat flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@andrewkroh
Copy link
Member

Flaky Test

Looks like it was recently introduced in #24425 and has been failing on and off since then.

Screen Shot 2021-04-21 at 5 15 54 PM

Stack Trace

=== RUN   TestFilestreamTruncate
coverage: 67.6% of statements
panic: test timed out after 10m0s

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

goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc000682600, 0xd1bbdb, 0x16, 0xd42618, 0x495101)
	/usr/local/go/src/testing/testing.go:1169 +0x2da
testing.runTests.func1(0xc0001ee900)
	/usr/local/go/src/testing/testing.go:1439 +0x78
testing.tRunner(0xc0001ee900, 0xc00026fda8)
	/usr/local/go/src/testing/testing.go:1123 +0xef
testing.runTests(0xc0004a5400, 0x134aee0, 0x23, 0x23, 0xc0183ff58dbfd63b, 0x8bb36d26c0, 0x136e160, 0x40f470)
	/usr/local/go/src/testing/testing.go:1437 +0x2fe
testing.(*M).Run(0xc0000dd500, 0x0)
	/usr/local/go/src/testing/testing.go:1345 +0x1eb
main.main()
	_testmain.go:171 +0x1c5

goroutine 386 [runnable]:
github.com/elastic/go-structform/gotype.foldMapInterface(0xc00052a180, 0xc12500, 0xc0001f0ff0, 0x13a0760, 0xc000296000)
	/go/pkg/mod/github.com/elastic/go-structform@v0.0.8/gotype/fold_map.go:51 +0xdc
github.com/elastic/go-structform/gotype.foldInterfaceValue(0xc00052a180, 0xc12500, 0xc0001f0ff0, 0x0, 0x0)
	/go/pkg/mod/github.com/elastic/go-structform@v0.0.8/gotype/fold.go:98 +0x445
github.com/elastic/go-structform/gotype.foldMapInterface(0xc00052a180, 0xc12500, 0xc0001f0f90, 0x13a0760, 0xbb0080)
	/go/pkg/mod/github.com/elastic/go-structform@v0.0.8/gotype/fold_map.go:55 +0x171
github.com/elastic/go-structform/gotype.foldInterfaceValue(0xc00052a180, 0xc12500, 0xc0001f0f90, 0x0, 0x0)
	/go/pkg/mod/github.com/elastic/go-structform@v0.0.8/gotype/fold.go:98 +0x445
github.com/elastic/go-structform/gotype.(*Iterator).Fold(...)
	/go/pkg/mod/github.com/elastic/go-structform@v0.0.8/gotype/fold.go:86
github.com/elastic/beats/v7/libbeat/common/transform/typeconv.(*Converter).Convert(0xc000528000, 0xbb0080, 0xc0003a49a0, 0xc12500, 0xc0001f0f90, 0x0, 0x0)
	/go/src/github.com/elastic/beats/libbeat/common/transform/typeconv/typeconv.go:108 +0x136
github.com/elastic/beats/v7/libbeat/common/transform/typeconv.Convert(0xbb0080, 0xc0003a49a0, 0xc12500, 0xc0001f0f90, 0x0, 0x0)
	/go/src/github.com/elastic/beats/libbeat/common/transform/typeconv/typeconv.go:129 +0xc7
github.com/elastic/beats/v7/libbeat/statestore/storetest.(*MapStore).Get(0xc00019db00, 0xc00003ea20, 0x28, 0xbb0080, 0xc0003a49a0, 0x0, 0x0)
	/go/src/github.com/elastic/beats/libbeat/statestore/storetest/storetest.go:156 +0xe5
github.com/elastic/beats/v7/libbeat/statestore.(*Store).Get(0xc0003a1c40, 0xc00003ea20, 0x28, 0xbb0080, 0xc0003a49a0, 0x0, 0x0)
	/go/src/github.com/elastic/beats/libbeat/statestore/store.go:101 +0x13c
github.com/elastic/beats/v7/filebeat/input/filestream.(*inputTestingEnvironment).getRegistryState(0xc00049e1e0, 0xc00003ea20, 0x28, 0x22, 0xc12500, 0xc0003a6db0, 0x0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/environment_test.go:275 +0x98
github.com/elastic/beats/v7/filebeat/input/filestream.(*inputTestingEnvironment).waitUntilOffsetInRegistry(0xc00049e1e0, 0xd11678, 0x8, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/environment_test.go:238 +0x1ed
github.com/elastic/beats/v7/filebeat/input/filestream.TestFilestreamTruncate(0xc000682600)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/input_integration_test.go:890 +0x485
testing.tRunner(0xc000682600, 0xd42618)
	/usr/local/go/src/testing/testing.go:1123 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1168 +0x2b3

goroutine 390 [semacquire, 9 minutes]:
sync.runtime_Semacquire(0xc0001f09b8)
	/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0001f09b0)
	/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/elastic/go-concert/unison.(*MultiErrGroup).Wait(0xc0001f0990, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/unison/multierrgroup.go:54 +0x53
github.com/elastic/beats/v7/filebeat/input/filestream.(*fileProspector).Run(0xc000172280, 0xc00006eff0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/prospector.go:229 +0x3a5
github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.(*managedInput).Run(0xc0001722d0, 0xc00006eff0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/internal/input-logfile/input.go:78 +0x38d
github.com/elastic/beats/v7/filebeat/input/filestream.(*inputTestingEnvironment).startInput.func1(0xe01b80, 0xc0002913c0, 0xdff040, 0xc0001722d0, 0xc00049e1e0, 0xc00049e270)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/environment_test.go:95 +0x14c
created by github.com/elastic/beats/v7/filebeat/input/filestream.(*inputTestingEnvironment).startInput
	/go/src/github.com/elastic/beats/filebeat/input/filestream/environment_test.go:91 +0x9a

goroutine 391 [select]:
github.com/elastic/go-concert/timed.Periodic(0x7f71fa899030, 0xc000291400, 0xf4240, 0xc0004e5ec0, 0x0, 0x0)
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/timed/timed.go:76 +0x13d
github.com/elastic/beats/v7/filebeat/input/filestream.(*fileWatcher).Run(0xc000291380, 0x7f71fa899008, 0xc000291400)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/fswatch.go:128 +0x10b
github.com/elastic/beats/v7/filebeat/input/filestream.(*fileProspector).Run.func1(0x0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/prospector.go:117 +0x9a
github.com/elastic/go-concert/unison.(*MultiErrGroup).Go.func1(0xc0001f0990, 0xc0001aa920)
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/unison/multierrgroup.go:42 +0x64
created by github.com/elastic/go-concert/unison.(*MultiErrGroup).Go
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/unison/multierrgroup.go:40 +0x66

goroutine 392 [chan receive, 9 minutes]:
github.com/elastic/beats/v7/filebeat/input/filestream.(*fileWatcher).Event(0xc000291380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/fswatch.go:228 +0x85
github.com/elastic/beats/v7/filebeat/input/filestream.(*fileProspector).Run.func2(0xc000342ea0, 0x0)
	/go/src/github.com/elastic/beats/filebeat/input/filestream/prospector.go:125 +0x1bf
github.com/elastic/go-concert/unison.(*MultiErrGroup).Go.func1(0xc0001f0990, 0xc000291440)
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/unison/multierrgroup.go:42 +0x64
created by github.com/elastic/go-concert/unison.(*MultiErrGroup).Go
	/go/pkg/mod/github.com/elastic/go-concert@v0.1.0/unison/multierrgroup.go:40 +0x66
@andrewkroh andrewkroh added Filebeat Filebeat flaky-test Unstable or unreliable test cases. labels Apr 21, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 21, 2021
andrewkroh added a commit to andrewkroh/beats that referenced this issue Apr 21, 2021
@andrewkroh andrewkroh added the Team:Elastic-Agent Label for the Agent team label Apr 21, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 21, 2021
kvch pushed a commit that referenced this issue Apr 22, 2021
mergify bot pushed a commit that referenced this issue Apr 23, 2021
mergify bot pushed a commit that referenced this issue Apr 23, 2021
andrewkroh added a commit that referenced this issue Apr 23, 2021
Related: #25217
(cherry picked from commit 7e1d9e4)

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
kvch added a commit to kvch/beats that referenced this issue Apr 23, 2021
kvch added a commit that referenced this issue Apr 23, 2021
mergify bot pushed a commit that referenced this issue Apr 23, 2021
mergify bot pushed a commit that referenced this issue Apr 23, 2021
kvch added a commit that referenced this issue Apr 28, 2021
Closes #25217

(cherry picked from commit 08caa4e)

Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
kvch added a commit that referenced this issue Apr 29, 2021
Closes #25217

(cherry picked from commit 08caa4e)

Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants