Reindex from remote broken again in 5.4?

I'm reindexing from a 1.7.6 version to 5.4 and it fails again (after being fixed in 5.3.2):

`{

"error": {
"root_cause": [
{
"type": "status_exception",
"reason": "body={"error":"ElasticsearchParseException[Failed to parse [300000000000nanos]]; nested: NumberFormatException[For input string: \"300000000000nano\"]; ","status":400}"
}
],
"type": "status_exception",
"reason": "body={"error":"ElasticsearchParseException[Failed to parse [300000000000nanos]]; nested: NumberFormatException[For input string: \"300000000000nano\"]; ","status":400}",
"caused_by": {
"type": "response_exception",
"reason": "POST http://xx.xx.xx.xx:9200/_search/scroll?scroll=300000000000nanos: HTTP/1.1 400 Bad Request\n{"error":"ElasticsearchParseException[Failed to parse [300000000000nanos]]; nested: NumberFormatException[For input string: \"300000000000nano\"]; ","status":400}"
}
},
"status": 400
}`

Anybody tested reindexing in 5.4 from older versions?

Can you show us the request you are making?

Here comes (it is the same I used with 5.3):

POST _reindex
{
   "source": {       
      "remote": {
         "host": "http://xx.xx.xx.xx:9200"
      },
      "index": "rules",
      "type": "groups"
   },
   "dest": {
      "index": "rules",
      "type": "groups"
   }   
}

Is there something in the ES logs at this time?

No, nothing on either source or dest.

But isn't the error that the 300000000000nanos is not a recognized time unit on 1.7.6?

It looks like the scroll ID that is being used is not valid.

It's indeed broken, it will be fixed in 5.4.1. We've added integration testing for 0.90.13, 1.7.6, and 2.4.5 so that hopefully this is never broken again. See https://github.com/elastic/elasticsearch/pull/24561.

1 Like

Hi, I have had this issue as well.
Is there a date for the release of 5.4.1?
Thanks

We do not provide release dates.

I'm also enjoying this bug..
Is there a workaround? How to I set the scroll size? How do I set the total size when indexing from remote?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.