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

Add ES8 tests, add test data for breaking change #113

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Conversation

hoenn
Copy link
Contributor

@hoenn hoenn commented Apr 2, 2024

  • Adds a folder allowing CI to run against ES8
  • Each folder now has their own documents.dat to load given breaking changes in ES8
  • docker-compose was changed to docker compose regarding https://github.com/actions/runner-images/issues/9557

@hoenn hoenn marked this pull request as ready for review April 2, 2024 16:15
@hoenn hoenn requested a review from a team April 2, 2024 16:17
Comment on lines -47 to +48
curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:49200/_bulk --data-binary "@../documents.dat"; echo
curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:49200/_bulk --data-binary "@documents.dat"; echo

Choose a reason for hiding this comment

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

What is x-ndjson? I've never heard of that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

new line delimited json. The .dat files contain multiple objects separated by newlines. Common pattern afaik for using the bulk api like this. https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-curl

@hoenn hoenn merged commit f113346 into main Apr 2, 2024
5 checks passed
@hoenn hoenn deleted the hoenn/run-es8-ci branch April 2, 2024 17:47
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.

2 participants