opensearch-project / opensearch-project/data-prepper
Assume distribution_version is set to opensearch for OpenSearch source
@saketh-pallempati is already working on this.
Since May 21, 2025.
- Dominant language
- Java
- Stars
- 374
- Forks
- 354
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
The opensearch source attempts to auto detect by calling the GET / API if the source is an opensearch or elasticsearch cluster. Sometimes, clusters have spoofed responses that impersonate something they are not, and this can lead to failures without the distribution version being set.
Describe the solution you'd like
To handle this more gracefully, if distribution_version is not set, and the attempts to call the GET / API fail for both the opensearch and elasticsearch clients, the opensearch source should act as if the distribution_version is set to OpenSearch, and continue
Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.