Skip to content

Pull index routing into strategy object (backport of #77211)#77562

Merged
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
nik9000:index_routing_7_x
Sep 10, 2021
Merged

Pull index routing into strategy object (backport of #77211)#77562
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
nik9000:index_routing_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Sep 10, 2021

This pulls the calculation of the shard id for an (id, routing) pair
into a little strategy class, IndexRouting. This is easier to test and
should be easier to extend.

My hope is that this is an incremental readability improvement. My
ulterior motive is that this is where I want to land our new
routing-by-dimensions work for tsdb.

This pulls the calculation of the shard id for an (id, routing) pair
into a little strategy class, `IndexRouting`. This is easier to test and
should be easier to extend.

My hope is that this is an incremental readability improvement. My
ulterior motive is that this is where I want to land our new
routing-by-dimensions work for tsdb.
@nik9000 nik9000 added backport v7.16.0 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Sep 10, 2021
@elasticsearchmachine elasticsearchmachine merged commit ba17817 into elastic:7.x Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants