Skip to content

[Pull-based ingestion] Support updates and deletes in ingestion flow#17822

Merged
andrross merged 2 commits intoopensearch-project:mainfrom
varunbharadwaj:vb/updates
Apr 9, 2025
Merged

[Pull-based ingestion] Support updates and deletes in ingestion flow#17822
andrross merged 2 commits intoopensearch-project:mainfrom
varunbharadwaj:vb/updates

Conversation

@varunbharadwaj
Copy link
Copy Markdown
Contributor

@varunbharadwaj varunbharadwaj commented Apr 7, 2025

Description

This PR adds support in the ingestion flow to support updates and deletes. Additionally, an ID will be auto-generated for upserts if not present in the incoming message.

Related Issues

Builds on top of #16929

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2025

❌ Gradle check result for 89bfb56: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2025

❌ Gradle check result for 37197bc: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2025

❕ Gradle check result for 54cae36: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 58.53659% with 17 lines in your changes missing coverage. Please review.

Project coverage is 72.35%. Comparing base (3823169) to head (9a15c44).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...a/org/opensearch/index/engine/IngestionEngine.java 16.66% 13 Missing and 2 partials ⚠️
...ndices/pollingingest/MessageProcessorRunnable.java 90.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17822      +/-   ##
============================================
- Coverage     72.47%   72.35%   -0.12%     
+ Complexity    66534    66459      -75     
============================================
  Files          5408     5410       +2     
  Lines        308217   308262      +45     
  Branches      44749    44756       +7     
============================================
- Hits         223369   223051     -318     
- Misses        66591    66884     +293     
- Partials      18257    18327      +70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@yupeng9 yupeng9 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@andrross andrross left a comment

Choose a reason for hiding this comment

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

@varunbharadwaj Can you rebase and fix conflicts?

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2025

❌ Gradle check result for 9a15c44: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2025

✅ Gradle check result for 9a15c44: SUCCESS

@andrross andrross merged commit 4c3230a into opensearch-project:main Apr 9, 2025
56 of 59 checks passed
rgsriram pushed a commit to rgsriram/OpenSearch that referenced this pull request Apr 15, 2025
…pensearch-project#17822)

* Support updates and deletes in ingestion flow

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

* Move ID generation to common util

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

---------

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
Signed-off-by: Sriram Ganesh <srignsh22@gmail.com>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…pensearch-project#17822)

* Support updates and deletes in ingestion flow

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

* Move ID generation to common util

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

---------

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…pensearch-project#17822)

* Support updates and deletes in ingestion flow

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

* Move ID generation to common util

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>

---------

Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
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.

3 participants