Skip to content

Make the TransportRolloverAction execute in one cluster state update (#50388)#50442

Merged
andreidan merged 1 commit intoelastic:7.xfrom
andreidan:backport/7x-transport-rollover-action
Dec 20, 2019
Merged

Make the TransportRolloverAction execute in one cluster state update (#50388)#50442
andreidan merged 1 commit intoelastic:7.xfrom
andreidan:backport/7x-transport-rollover-action

Conversation

@andreidan
Copy link
Copy Markdown
Contributor

This commit makes the TransportRolloverAction more resilient, by having it execute
only one cluster state update that creates the new (rollover index), rolls over
the alias from the source to the target index and set the RolloverInfo on the
source index. Before these 3 steps were represented as 3 chained cluster state
updates, which would've seen the user manually intervene if, say, the alias
rollover cluster state update (second in the chain) failed but the creation of
the rollover index (first in the chain) update succeeded

  • Rename innerExecute to applyAliasActions

(cherry picked from commit 1ba4339)
Signed-off-by: Andrei Dan andrei.dan@elastic.co

Backport of #50388

…lastic#50388)

This commit makes the TransportRolloverAction more resilient, by having it execute
only one cluster state update that creates the new (rollover index), rolls over
the alias from the source to the target index and set the RolloverInfo on the
source index. Before these 3 steps were represented as 3 chained cluster state
updates, which would've seen the user manually intervene if, say, the alias
rollover cluster state update (second in the chain) failed but the creation of
the rollover index (first in the chain) update succeeded

* Rename innerExecute to applyAliasActions

(cherry picked from commit 1ba4339)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
@andreidan
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/1

@andreidan andreidan merged commit a3cdbda into elastic:7.x Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant