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

Assign id to searcher using ids of segments #66668

Merged
merged 5 commits into from
Dec 21, 2020
Merged

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Dec 20, 2020

The commit id introduced in #63963 does not work well with searchable snapshots as we create a new index commit when restoring from snapshots. This change revises the previous approach that generates a commit id using the ids of the segments of an index commit.

Relates #63963

@dnhatn dnhatn added :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v8.0.0 v7.12.0 labels Dec 21, 2020
@dnhatn dnhatn marked this pull request as ready for review December 21, 2020 02:30
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label Dec 21, 2020
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

@dnhatn dnhatn changed the title Generate searcher's commit id from ids of segments Assign id to searcher using ids of segments Dec 21, 2020
@dnhatn
Copy link
Member Author

dnhatn commented Dec 21, 2020

testListenersInvokedWhenIndexIsDangling

@elasticmachine run elasticsearch-ci/1

@dnhatn
Copy link
Member Author

dnhatn commented Dec 21, 2020

Thanks Henning for reviewing.

@dnhatn dnhatn merged commit fdec6c1 into elastic:master Dec 21, 2020
@dnhatn dnhatn deleted the composed-id branch December 21, 2020 15:18
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Dec 21, 2020
The commit id introduced in elastic#63963 does not work well with searchable
snapshots as we create a new index commit when restoring from snapshots.

This change revises an approach that generates an id using the ids of the
 segments of an index commit.

Relates elastic#63963
dnhatn added a commit that referenced this pull request Dec 21, 2020
The commit id introduced in #63963 does not work well with searchable
snapshots as we create a new index commit when restoring from snapshots.

This change revises an approach that generates an id using the ids of the
segments of an index commit.

Relates #63963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement Team:Distributed Meta label for distributed team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants