-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Distributed Indexing/ReindexIssues relating to reindex that are not caused by issues further downIssues relating to reindex that are not caused by issues further down>bug
Description
curl -XPUT "http://localhost:9220/foo"
curl -XPOST "http://localhost:9220/_reindex?wait_for_completion=false" -H 'Content-Type: application/json' -d'{ "source": { "index": "foo" }, "dest": { "index": "bar" }}'
// run twice
curl -XPOST "http://localhost:9220/_reindex?wait_for_completion=false" -H 'Content-Type: application/json' -d'{ "source": { "index": "foo" }, "dest": { "index": "bar" }}'
Error log
│ info [o.e.t.LoggingTaskListener] [windesk] 6563 failed with exception
│ org.elasticsearch.index.mapper.MapperParsingException: Root mapping definition has unsupported parameters: [task : {_meta={version=2}, dynamic=strict, properties={completed={type=boolean}, task={properties={action={type=keyword}, cancellable={type=boolean}, id={type=long}, parent_task_id={type=keyword}, node={type=keyword}, running_time_in_nanos={type=long}, start_time_in_millis={type=long}, type={type=keyword}, status={type=object, enabled=false}, description={type=text}, headers={type=object, enabled=false}}}, response={type=object, enabled=false}, error={type=object, enabled=false}}}]
│ at org.elasticsearch.index.mapper.DocumentMapperParser.checkNoRemainingFields(DocumentMapperParser.java:147) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
│ at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:135) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
│ at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:83) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
│ at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:553) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
The response code is 200 with a task id. When attempting to retrieve the returned task id:
curl -XGET "http://localhost:9220/_tasks/UWqGoA9jRM25A2GQIUZp3g:6563"
{
"error" : {
"root_cause" : [
{
"type" : "resource_not_found_exception",
"reason" : "task [UWqGoA9jRM25A2GQIUZp3g:6563] isn't running and hasn't stored its results"
}
],
"type" : "resource_not_found_exception",
"reason" : "task [UWqGoA9jRM25A2GQIUZp3g:6563] isn't running and hasn't stored its results"
},
"status" : 404
}
Re-indexing fails until the .tasks index is deleted, and then I can run it once before it starts failing again.
Metadata
Metadata
Assignees
Labels
:Distributed Indexing/ReindexIssues relating to reindex that are not caused by issues further downIssues relating to reindex that are not caused by issues further down>bug