opensearch-project / opensearch-project/data-prepper
[BUG] OpenSearch Serverless Sink does not create index on startup
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 374
- Forks
- 354
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
Describe the bug
When using an OpenSearch Serverless collection in a pipeline in the opensearch sink, the index configured is not created until a document is sent to the pipeline and is indexed into the collection.
To Reproduce
Steps to reproduce the behavior:
- Create a pipeline with an opensearch serverless collection as a sink
- Observe the index configured in the sink is not created when starting Data Prepper
- Send an Event to the pipeline
- Observe the document in the collection in the specified index
Expected behavior
The index should be created on startup like it is for non-serverless opensearch sinks
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. Ubuntu 20.04 LTS]
- Version [e.g. 22]
Additional context
Add any other context about the problem 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.
Research direction
Start at the OpenSearch sink startup path and reproduce the issue with an OpenSearch Serverless collection, observing whether the configured index exists before any event is sent. Compare this behavior with non-serverless OpenSearch sinks and identify the existing startup index-creation tests or entry points. Done means the configured index is created when the pipeline starts, before documents arrive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100