Fix bulk doc_as_upsert ingest pipeline to run after merge - #22566
Fix bulk doc_as_upsert ingest pipeline to run after merge#22566habiibullahm wants to merge 2 commits into
Conversation
…-project#10864) Defer pipeline execution for bulk doc_as_upsert until after UpdateHelper.prepare so pipelines see the full merged document, matching single Update API behavior. Signed-off-by: Muhammad Habiibullah <muhammad.habiibullah@dansmultipro.com> Co-authored-by: Cursor <cursoragent@cursor.com>
PR Reviewer Guide 🔍(Review updated until commit 78d1d4e)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 78d1d4e
Previous suggestionsSuggestions up to commit 42c49fc
|
|
❌ Gradle check result for 42c49fc: 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? |
Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Muhammad Habiibullah <muhammad.habiibullah@dansmultipro.com> Co-authored-by: Cursor <cursoragent@cursor.com>
cd064a9 to
78d1d4e
Compare
|
Root cause of the failed Pushed a formatting-only follow-up with DCO sign-off: |
|
Persistent review updated to latest commit 78d1d4e |
|
❌ Gradle check result for 78d1d4e: 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? |
Summary
doc_as_upsertwith an ingest pipeline now matches single_updatebehavior by running pipelines on the full document afterUpdateHelper.prepare(create or merged update), instead of on the partial doc at the coordinating node.doc_as_upsertchild docs as NOOP so pre-merge ingest is skipped;TransportShardBulkActionre-resolves and executes pipelines on the primary after prepare.Test plan
TransportBulkActionIngestTests/TransportShardBulkActionTestsunit testsingest/70_bulk.ymlreproducing the issue scenario (duration/begin/end pipeline on existing doc)Made with Cursor