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

Fix several search export client issues #18787

Merged
merged 4 commits into from Mar 27, 2024

Conversation

mpfz0r
Copy link
Member

@mpfz0r mpfz0r commented Mar 25, 2024

  • The export client did not report any errors if only individual shards fail.

  • The default sort order was wrong.
    We did sort by "timestamp.ASC, timestamp.DESC, gl2_second_sort_field.DESC"
    Change this to: "timestamp.ASC, gl2_second_sort_field.ASC"

  • The ExportBackendIT tests were producing errors because the templates
    were applied for '*' which included the ism indices and their
    compound templates. Maybe we can use graylog_* for all tests, but
    for now make the wildcard configurable for each test.

  • Add proper cleanup between each ExportBackendIT test

  • Add missing mocking. some tests were running against all indices
    which is something that never happens in the real world.

  • Add test for the missing sort field (gl2_second_sort_field) fix

  • Add test for reporting individual shard failures

/nocl

 - The export client did not report any errors if only individual shards fail.

 - The default sort order was wrong.
   We did sort by "timestamp.ASC, timestamp.DESC, gl2_second_sort_field.DESC"
   Change this to: "timestamp.ASC, gl2_second_sort_field.ASC"

 - The ExportBackendIT tests were producing errors because the templates
   were applied for '*' which included the ism indices and their
   compound templates. Maybe we can use `graylog_*` for all tests, but
   for now make the wildcard configurable for each test.

 - Add proper cleanup between each ExportBackendIT test

 - Add missing mocking. some tests were running against all indices
   which is something that never happens in the real world.

 - Add test for the missing sort field (gl2_second_sort_field) fix

 - Add test for reporting individual shard failures
@mpfz0r mpfz0r force-pushed the fix-export-client-error-handling branch from a2ae859 to 506d059 Compare March 26, 2024 10:12
@mpfz0r mpfz0r marked this pull request as ready for review March 26, 2024 11:30
Copy link
Contributor

@luk-kaminski luk-kaminski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, Marco!

@luk-kaminski luk-kaminski merged commit 661fb06 into master Mar 27, 2024
5 checks passed
@luk-kaminski luk-kaminski deleted the fix-export-client-error-handling branch March 27, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants