Description
Expected behavior
Queue handling without errors
Actual behavior
Queue is processed with errors. As soon as the error occurs the processing stops.
Not sure if it is a misconfiguration or a problem with the index.
Steps to reproduce
Use exported data: datahub_simpleRest_rest_test_export.json
Execute the following commands:
bin/console datahub:simple-rest:create-or-update-mapping
bin/console datahub:simple-rest:init-index
bin/console datahub:simple-rest:process-queue
`ERR 13:17:51 WARNING [pimcore.opensearch.default] Request Failure:
[
"method" => "POST","uri" => "https://qa-opensearch:9200/enterprise_simple_rest__ci-hub-endpoint__asset/_doc/429",
"port" => 9200,
"headers" => [
"Host" => ["qa-opensearch"],
"Content-Type" => ["application/json"],
"Accept" => ["application/json"],
"User-Agent" => ["opensearch-php/2.3.1 (Linux 6.1.0-13-amd64; PHP 8.2.20)"]],
"HTTP code" => 400,
"duration" => 0.000802,
"error" => "{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}"]
ERR 13:17:51 WARNING [pimcore.opensearch.default] Response ["{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}"]
ERR 13:17:51 ERROR [pimcore_datahub_simplerest] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}`
On the qa system there are still 8 entries which will raise this error and won't be removed from the queue.