Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CCR search bug caused by paused follower indices #64717

Merged

Conversation

cjcenizal
Copy link
Contributor

Release note

Searching the follower indices table would crash Kibana whenever a follower index was paused. This is because the _ccr/stats API doesn't provide shard information for paused follower indices, but the search logic depended on this information being present. I've changed the logic to remove this dependency, so search behaves as expected.

…r index name or remote cluster name when paused follower indices existed in the table.
@cjcenizal cjcenizal added release_note:fix Feature:CCR and Remote Clusters v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.7.0 v7.8.0 labels Apr 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@@ -273,7 +273,7 @@ export class FollowerIndicesTable extends PureComponent {
};

const selection = {
onSelectionChange: selectedItems => this.setState({ selectedItems }),
onSelectionChange: newSelectedItems => this.setState({ selectedItems: newSelectedItems }),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to make this change to satisfy the linter.

@cjcenizal cjcenizal requested a review from sebelga April 28, 2020 23:05
@cjcenizal
Copy link
Contributor Author

@elasticmachine merge upstream

@cjcenizal
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally and works as expected. 👍

@cjcenizal cjcenizal changed the title Fix CCR follower indices search bug caused by paused follower indices Fix CCR search bug caused by paused follower indices May 4, 2020
@cjcenizal cjcenizal merged commit f1d1b8c into elastic:master May 4, 2020
@cjcenizal cjcenizal deleted the bug/follower-index-paused-missing-info branch May 4, 2020 18:05
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 4, 2020
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 4, 2020
# Conflicts:
#	x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/follower_indices_table/follower_indices_table.js
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 4, 2020
# Conflicts:
#	x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/follower_indices_table/follower_indices_table.js
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label May 6, 2020
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:CCR and Remote Clusters release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.7.0 v7.8.0 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants