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

Shrink operation error message text "must be a" is doubled. #36729

Closed
raulk89 opened this issue Dec 17, 2018 · 2 comments
Closed

Shrink operation error message text "must be a" is doubled. #36729

raulk89 opened this issue Dec 17, 2018 · 2 comments
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates v6.5.3

Comments

@raulk89
Copy link

raulk89 commented Dec 17, 2018

Elasticsearch version (bin/elasticsearch --version): 6.5.3

Plugins installed: [ingest-attachment]

JVM version (java -version): 1.8.0_191

OS version (uname -a if on a Unix-like system): 3.10.0-957.1.3.el7.x86_64

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

PUT my_source_index
{
    "settings": {
        "index.number_of_shards" : 4
    }
}

PUT /my_source_index/_settings
{
  "settings": {
    "index.routing.allocation.require._name": "dc1-etelastic", 
    "index.blocks.write": true 
  }
}

POST my_source_index/_shrink/my_target_index?copy_settings=true
{
  "settings": {
    "index.routing.allocation.require._name": null,
    "index.blocks.write": null,
    "index.number_of_shards": 3
  }
}

And the error is as follows, note that "must be a" is doubled.

"type": "illegal_argument_exception",
"reason": "the number of source shards [4] must be a must be a multiple of [3]"

Provide logs (if relevant):

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@jasontedor
Copy link
Member

Thanks for the report @raulk89.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates v6.5.3
Projects
None yet
Development

No branches or pull requests

4 participants