Skip to content

Allocate primary shards based on allocation IDs#15281

Merged
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:feature/alloc-ids-primary
Dec 17, 2015
Merged

Allocate primary shards based on allocation IDs#15281
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:feature/alloc-ids-primary

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Dec 7, 2015

  • Add allocation IDs to TransportNodesListGatewayStartedShards action.
  • Use the above to assign a primary shard on recovery.
  • Also add allocation id to indices shard store response (/some_index/_shard_stores)

Relates to #14739

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

call this lastActiveAllocationIds?

@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented Dec 9, 2015

Pushed changes related to our discussion:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That Allocation enum is really confusing in this context (I stumbled on this 3 times now). This is unrelated to this change, so I'm not suggesting we change it here - but do you have suggestions for a better name? maybe AllocatedAs ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What about AllocationStatus? The JSON field should also be adapted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I liked allocatedAs better :) (note that the name of the java JSON field is ALLOCATED :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >enhancement v5.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants