Skip to content
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] The result of reindex depends on whether slices is added or not #16549

Open
kkewwei opened this issue Nov 4, 2024 · 1 comment
Open
Labels
bug Something isn't working Plugins

Comments

@kkewwei
Copy link
Contributor

kkewwei commented Nov 4, 2024

Describe the bug

  1. When we reindex in a empty indices with the command:
PUT nested_12

POST _reindex
{
    "source": {
    "index": "nested_12"
  },
  "dest": {
    "index": "nested_123"
  }
}

The response is as follows:

{
   "took": 71,
   "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,
   "throttled_until_millis": 0,
   "failures": []
}
  1. When the slices is added:
POST _reindex?slices=4
{
    "source": {
    "index": "nested_12"
  },
  "dest": {
    "index": "nested_123"
  }
}

The response is as follows:

{
   "error": {
      "root_cause": [
         {
            "type": "illegal_argument_exception",
            "reason": "field _id not found"
         }
      ],
      "type": "search_phase_execution_exception",
      "reason": "all shards failed",
      "phase": "query",
      "grouped": true,
      "failed_shards": [
         {
            "shard": 0,
            "index": "nested_12",
            "node": "Wj6shio_QcGfnUmKwFb-2w",
            "reason": {
               "type": "illegal_argument_exception",
               "reason": "field _id not found"
            }
         }
      ],

It's caused by

throw new IllegalArgumentException("field " + field + " not found");

Related component

Plugins

Expected behavior

The behive should be the same whether slices is added or not

Host/Environment (please complete the following information):

  • Version: os2.9
@kkewwei kkewwei added bug Something isn't working untriaged labels Nov 4, 2024
@kkewwei kkewwei closed this as completed Nov 6, 2024
@kkewwei kkewwei reopened this Nov 6, 2024
@dblock dblock removed the untriaged label Nov 25, 2024
@dblock
Copy link
Member

dblock commented Nov 25, 2024

[Catch All Triage - 1, 2, 3, 4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plugins
Projects
None yet
Development

No branches or pull requests

2 participants