Skip to content

Conversation

@ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Feb 22, 2021

Integrating the FrozenEngine with searchable snapshots found an interesting (existing) bug in FrozenEngine, namely that when the Lucene index was being loaded as part of a query phase, another search in the can_match phase would be blocked, as loading the index is done under a mutex that is also acquired during the can_match phase.

This led to the SearchableSnapshotsIntegTests being very slow, and failing an assertBusy due to the slowness, see https://gradle-enterprise.elastic.co/s/b4w4w7hplq6lc/tests/:x-pack:plugin:searchable-snapshots:internalClusterTest/org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests/testCreateAndRestorePartialSearchableSnapshot

Closes #69336

@ywelsch ywelsch added >bug :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.12.0 v7.13.0 labels Feb 22, 2021
@ywelsch ywelsch requested a review from dnhatn February 22, 2021 18:54
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

Great find. LGTM

@ywelsch ywelsch merged commit a8fd995 into elastic:master Feb 23, 2021
ywelsch added a commit that referenced this pull request Mar 17, 2021
The backport of #69379 forgot to reenable the tests.
ywelsch added a commit that referenced this pull request Mar 17, 2021
The backport of #69379 forgot to reenable the tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.12.0 v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] SearchableSnapshotsIntegTests.testCreateAndRestorePartialSearchableSnapshot fails

4 participants