Skip to content

Fixing isMigrated bug, when migrations failed we incorrectly ignored it.#37674

Merged
kobelb merged 1 commit into
elastic:masterfrom
kobelb:is-migrated
Jun 4, 2019
Merged

Fixing isMigrated bug, when migrations failed we incorrectly ignored it.#37674
kobelb merged 1 commit into
elastic:masterfrom
kobelb:is-migrated

Conversation

@kobelb
Copy link
Copy Markdown
Contributor

@kobelb kobelb commented May 31, 2019

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no .kibana alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.

"Release Note: Resolving issue which occurs when migrations are partially complete and a new Kibana instance starts up. The migrations weren't blocking operations which could cause the creation of a .kibana index."

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@kobelb kobelb marked this pull request as ready for review May 31, 2019 16:45
Copy link
Copy Markdown
Contributor

@chrisdavies chrisdavies left a comment

Choose a reason for hiding this comment

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

LGTM. Didn't pull down / run.

@kobelb kobelb requested review from a team and rudolf and removed request for a team June 3, 2019 19:16
Copy link
Copy Markdown
Contributor

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@joshdover joshdover left a comment

Choose a reason for hiding this comment

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

Can we add a test so we don't break this again?

@kobelb kobelb merged commit 8aaa753 into elastic:master Jun 4, 2019
@kobelb kobelb deleted the is-migrated branch June 4, 2019 21:30
kobelb added a commit to kobelb/kibana that referenced this pull request Jun 4, 2019
…it. (elastic#37674)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
kobelb added a commit to kobelb/kibana that referenced this pull request Jun 4, 2019
…it. (elastic#37674)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
kobelb added a commit to kobelb/kibana that referenced this pull request Jun 4, 2019
…it. (elastic#37674)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
kobelb added a commit that referenced this pull request Jun 4, 2019
…it. (#37674) (#38041)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
kobelb added a commit that referenced this pull request Jun 4, 2019
…it. (#37674) (#38042)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
kobelb added a commit that referenced this pull request Jun 4, 2019
…it. (#37674) (#38043)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…it. (elastic#37674)

Prior to this change, when migrations failed (for example when a
.kibana_1 index already exists and no alias does) the awaitMigration
promise would resolve incorrectly. This allowed subsequent plugins,
including Spaces, to proceed using the SavedObjectsClient/Repository
to create documents. This commonly caused a .kibana index to be created,
which would then block the creation of a .kibana alias, and everything
would grind to a halt.
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.

5 participants