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

DELETE document response on missing index has changed since 6.x beta #27070

Closed
Mpdreamz opened this issue Oct 21, 2017 · 1 comment
Closed

DELETE document response on missing index has changed since 6.x beta #27070

Mpdreamz opened this issue Oct 21, 2017 · 1 comment

Comments

@Mpdreamz
Copy link
Member

Mpdreamz commented Oct 21, 2017

Given index does not exist.

DELETE /index/type/1

Used to return (atleast late as 6.0.0-alpha1) :

{
	"found": false,
	"_index": "index",
	"_type": "type",
	"_id": "1",
	"_version": 1,
	"result": "not_found",
	"_shards": {
		"total": 1,
		"successful": 1,
		"failed": 0
	},
	"_seq_no": 0,
	"_primary_term": 1
}

But now returns:

{
	"error": {
		"root_cause": [{
			"type": "index_not_found_exception",
			"reason": "no such index",
			"resource.type": "index_expression",
			"resource.id": "index",
			"index_uuid": "_na_",
			"index": "index"
		}],
		"type": "index_not_found_exception",
		"reason": "no such index",
		"resource.type": "index_expression",
		"resource.id": "index",
		"index_uuid": "_na_",
		"index": "index"
	},
	"status": 404
}
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Oct 21, 2017
@jasontedor
Copy link
Member

This is intended behavior, see #24518.

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 23, 2017
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this issue Nov 9, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants