Skip to content

Conversation

@dliappis
Copy link
Contributor

@dliappis dliappis commented Feb 6, 2019

elastic/elasticsearch#38270 made current master
(7.0.0) reject mappings with type _doc unless
?include_type_name=true is passed during index creation.

Workaround the rejection for now by explicitly setting
include_type_name to true in every create_index operation.

elastic/elasticsearch#38270 made current master
(7.0.0) reject mappings with type `_doc` unless
`?include_type_name=true` is passed during index creation.

Workaround the rejection for now by explicitly setting
`include_type_name` to `true` in every create_index operation.
dliappis added a commit to dliappis/rally that referenced this pull request Feb 6, 2019
elastic/rally-tracks#64 requires passing a
parameter in the create-index runner, however, the underlying ES Python
client method[1] doesn't support it. Additionally our docs[2] hint
that this is possible, but it isn't.

This isn't caught by unit tests as the ES client is mocked and an
integration test is needed (TODO in a separate PR).

Directly call es.transport.perform_request to create an index, allowing
passing of any arbitrary parameter (such as `include_type_name`) to
the create index Elasticsearch API.

[1] https://elasticsearch-py.readthedocs.io/en/master/api.html?highlight=indices%20create#elasticsearch.client.IndicesClient.create
[2] https://esrally.readthedocs.io/en/stable/track.html#create-index
@dliappis
Copy link
Contributor Author

dliappis commented Feb 6, 2019

Note that elastic/rally#642 is a prerequisite to this.

Copy link
Contributor

@ebadyano ebadyano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thank you!

@dliappis dliappis merged commit 602a838 into elastic:master Feb 6, 2019
dliappis added a commit to elastic/rally that referenced this pull request Feb 6, 2019
elastic/rally-tracks#64 requires passing a
parameter in the create-index runner, however, the underlying ES Python
client method[1] doesn't support it. Additionally our docs[2] hint
that this is possible, but it isn't.

This isn't caught by unit tests as the ES client is mocked and an
integration test is needed (TODO in a separate PR).

Directly call es.transport.perform_request to create an index, allowing
passing of any arbitrary parameter (such as `include_type_name`) to
the create index Elasticsearch API.

[1] https://elasticsearch-py.readthedocs.io/en/master/api.html?highlight=indices%20create#elasticsearch.client.IndicesClient.create
[2] https://esrally.readthedocs.io/en/stable/track.html#create-index

Relates #642
imotov added a commit to imotov/rally-tracks that referenced this pull request Feb 11, 2019
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

Successfully merging this pull request may close these issues.

2 participants