Reindex from Remote not working

Hi,

I am trying to migrate all watchers from one cluster to another (both on 7.9.2) using the "Reindex from remote" feature, but it looks like the reindex is not picking up any documents.

POST _reindex
{
  "source": {
    "remote": {
      "host": "oldhost",
      "username": "xxxxx",
      "password": "xxxxx"
    },
    "index": ".watches",
    "query": {
      "match": {
        "test": "data"
      }
    }
  },
  "dest": {
    "index": "my_test_index"
  }
}

I whitelisted all datanodes from the old cluster, but for this test I just used one of the old datanodes.

With the above POST, I get this result:

{
  "took" : 21,
  "timed_out" : false,
  "total" : 0,
  "updated" : 0,
  "created" : 0,
  "deleted" : 0,
  "batches" : 0,
  "version_conflicts" : 0,
  "noops" : 0,
  "retries" : {
    "bulk" : 0,
    "search" : 0
  },
  "throttled_millis" : 0,
  "requests_per_second" : -1.0,
  "throttled_until_millis" : 0,
  "failures" : [ ]
}

Any idea what the issue is? I found a similar problem where the type field was the problem, but using this is deprecated in 7.9.2.

Any help is appreciated!

Thanks

Does your query match things if you run that in Dev Tools?

Please be aware that 7.9 is EOL :slight_smile:

I made a little progress here. I delete the query part.

POST _reindex
{
  "source": {
    "remote": {
      "host": "oldhost",
      "username": "xxxxx",
      "password": "xxxxx"
    },
    "index": ".watches",
     },
  "dest": {
    "index": "my_test_index"
  }
}

And now get this result:

{
  "took" : 15,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 273,
      "relation" : "eq"
    },
    "max_score" : 1.0

But this is not the correct amount, there should be way more watchers.


Oh, does EOL mean that you guys are not allowed to help on this issue anymore?

It means if you find a problem the best path is to first upgrade, then try again.

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