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 elastic 8 support via github.com/elastic/go-elasticsearch/v8 #30755

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

harryzcy
Copy link
Contributor

@harryzcy harryzcy commented Apr 29, 2024

Closes #30752

From go-elasticsearch:

Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.

It's unclear how much compatibility it has with Elasticsearch v7 and v8. Maybe let the testing determine it

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 29, 2024
@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Apr 29, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/dependencies labels Apr 29, 2024
@silverwind
Copy link
Member

silverwind commented Apr 29, 2024

Also update the action:

image: elasticsearch:7.5.0

image: elasticsearch:7.5.0

@harryzcy
Copy link
Contributor Author

elasticsearch 7 is still supported until 9.x is released. I think we should support both

@silverwind
Copy link
Member

silverwind commented Apr 29, 2024

Ok, it's actually fine to test the minimum supported version. We do this for databases too.

@stevapple
Copy link
Contributor

IIRC github.com/elastic/go-elasticsearch/v8 doesn’t support (at least) older Elasticsearch v7 clusters, nor OpenSearch.

Additional work is required to maintain compatibility with these distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/dependencies modifies/go Pull requests that update Go code size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elasticsearch 8 support
4 participants