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

Comments

Projects
None yet
4 participants
@raulk89
Copy link

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

This comment has been minimized.

Copy link

commented Dec 17, 2018

@talevy talevy added the v6.5.3 label Dec 17, 2018

@jasontedor

This comment has been minimized.

Copy link
Member

commented Dec 17, 2018

Thanks for the report @raulk89.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.