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

TestAppenderIndexFailedLogging is Flaky #211

Open
rubvs opened this issue Nov 5, 2024 · 0 comments
Open

TestAppenderIndexFailedLogging is Flaky #211

rubvs opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rubvs
Copy link

rubvs commented Nov 5, 2024

=== RUN   TestAppenderIndexFailedLogging
    appender_test.go:797:
        	Error Trace:	/Users/rubenvanstaden/elastic/go-docappender/appender_test.go:797
        	Error:      	"[{{error 2024-11-07 17:06:51.161592 -0500 EST m=+0.306465626  failed to index documents in 'an_index' (document_parsing_exception):  undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161538 -0500 EST m=+0.306411376  failed to index documents in 'an_index' (error_type): error_reason_even undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161601 -0500 EST m=+0.306474751  failed to index documents in 'an_index' (error_type): error_reason_even undefined } [{documents 11 2  <nil>}]} {{error 2024-11-07 17:06:51.161568 -0500 EST m=+0.306440959  failed to index documents in 'an_index' (error_type): error_reason_odd undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161612 -0500 EST m=+0.306485709  failed to index documents in 'an_index' (error_type): error_reason_odd undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161576 -0500 EST m=+0.306449709  failed to index documents in 'an_index' (unavailable_shards_exception):  undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161621 -0500 EST m=+0.306494751  failed to index documents in 'an_index' (unavailable_shards_exception):  undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161579 -0500 EST m=+0.306452168  failed to index documents in 'an_index' (x_content_parse_exception):  undefined } [{documents 11 1  <nil>}]} {{error 2024-11-07 17:06:51.161585 -0500 EST m=+0.306458001  failed to index documents in 'an_index' (x_content_parse_exception):  undefined } [{documents 11 1  <nil>}]}]" should have 5 item(s), but has 9
        	Test:       	TestAppenderIndexFailedLogging
--- FAIL: TestAppenderIndexFailedLogging (0.00s)
FAIL
FAIL	github.com/elastic/go-docappender/v2	2.342s
FAIL

Test

  • Race detector has to be enabled
go test -v -race ./..
@rubvs rubvs added the bug Something isn't working label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant