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

Clear Cache API rest spec not up to date #26947

Closed
Mpdreamz opened this issue Oct 10, 2017 · 4 comments
Closed

Clear Cache API rest spec not up to date #26947

Mpdreamz opened this issue Oct 10, 2017 · 4 comments
Assignees
Labels
:Core/Infra/REST API REST infrastructure and utilities

Comments

@Mpdreamz
Copy link
Member

POST http://127.0.0.1:9200/_cache/clear?pretty=true&recycler=true HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: 127.0.0.1:9200
Content-Length: 0
HTTP/1.1 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 348

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "request [/_cache/clear] contains unrecognized parameter: [recycler]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "request [/_cache/clear] contains unrecognized parameter: [recycler]"
  },
  "status" : 400
}

https://github.com/elastic/elasticsearch/blob/6.0/rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json#L49

recycler is no longer allowed but still documented.

@jasontedor
Copy link
Member

Can you submit a PR @Mpdreamz?

@Mpdreamz
Copy link
Member Author

@jasontedor thank you forgot to assign myself.

@javanna javanna added the :Core/Infra/REST API REST infrastructure and utilities label Oct 12, 2017
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Oct 21, 2017
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Oct 21, 2017
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Nov 16, 2017
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Nov 16, 2017
@nik9000
Copy link
Member

nik9000 commented Mar 12, 2018

@Mpdreamz are you still interested in fixing this one?

@javanna
Copy link
Member

javanna commented Mar 13, 2018

just realized that I found this and I am addressing it as part of #28866 .

@javanna javanna assigned javanna and unassigned Mpdreamz Mar 15, 2018
javanna added a commit that referenced this issue Mar 20, 2018
Relates to #27205

Also Closes #26947 (rest-spec were outdated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/REST API REST infrastructure and utilities
Projects
None yet
Development

No branches or pull requests

4 participants