-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Bulk upsert does not behave like a single Upsert, with an ingestion pipeline #10864
Comments
Interesting... I suspect that the root cause may be the same as #2607, but this is another good test case. Hopefully we can address both issues with one fix. |
It looks a little bit complicated, update api will transform
, after that the new indexRequest will be sent to TransportBulkAction and then execute pipeline. However, bulk api doesn't do that transformation before executing pipeline, so the behaviors are different. We may not transform updateRequest in TransportBulkAction because the method Another finding is that the behavior of executing pipeline between OpenSearch/server/src/main/java/org/opensearch/action/bulk/TransportBulkAction.java Line 224 in 8673fa9
When the document with ID
, but when upsert is set, the pipeline will be executed on the upsert doc
|
Describe the bug
A single Upsert works as expected with an ingestion pipeline.
But the same operation in a Bulk upsert doesn't give the same result.
To Reproduce
Steps to reproduce the behavior:
second time
then check the document
GET index-duration/_doc/doc_duration
it gives :
second time :
Then check the document with
GET index-duration/_doc/doc_duration_issue
it gives :
Expected behavior
Bulk Upsert and "Single" Upsert should have the same behavior when there is an ingestion pipeline.
We expect to get the same values than doc_duration :
Plugins
odfe-node1 opensearch-alerting 2.11.0.0
odfe-node1 opensearch-anomaly-detection 2.11.0.0
odfe-node1 opensearch-asynchronous-search 2.11.0.0
odfe-node1 opensearch-cross-cluster-replication 2.11.0.0
odfe-node1 opensearch-custom-codecs 2.11.0.0
odfe-node1 opensearch-geospatial 2.11.0.0
odfe-node1 opensearch-index-management 2.11.0.0
odfe-node1 opensearch-job-scheduler 2.11.0.0
odfe-node1 opensearch-knn 2.11.0.0
odfe-node1 opensearch-ml 2.11.0.0
odfe-node1 opensearch-neural-search 2.11.0.0
odfe-node1 opensearch-notifications 2.11.0.0
odfe-node1 opensearch-notifications-core 2.11.0.0
odfe-node1 opensearch-observability 2.11.0.0
odfe-node1 opensearch-performance-analyzer 2.11.0.0
odfe-node1 opensearch-reports-scheduler 2.11.0.0
odfe-node1 opensearch-security 2.11.0.0
odfe-node1 opensearch-security-analytics 2.11.0.0
odfe-node1 opensearch-sql 2.11.0.0
Host/Environment (please complete the following information):
Additional context
This issue is not exactly the same than the one posted here : #2607
That's why I prefer open a new one.
The text was updated successfully, but these errors were encountered: