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

Account soft-deletes in FrozenEngine #51192

Merged
merged 5 commits into from
Jan 20, 2020

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Jan 19, 2020

Currently, we do not exclude soft-deleted documents when opening index reader in the FrozenEngine.

Relates #50775

@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.7.0 labels Jan 19, 2020
@elasticmachine
Copy link
Collaborator

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

@dnhatn dnhatn mentioned this pull request Jan 19, 2020
14 tasks
@dnhatn dnhatn changed the title Add test verify frozen index without soft-deletes Account soft-deletes in FrozenEngine Jan 19, 2020
@dnhatn dnhatn requested a review from ywelsch January 19, 2020 23:08
@dnhatn dnhatn added >bug v6.8.7 v7.5.2 v7.6.1 and removed >test Issues or PRs that are addressing/adding tests labels Jan 19, 2020
@dnhatn dnhatn requested a review from jpountz January 19, 2020 23:10
Copy link
Contributor

@ywelsch ywelsch 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
Copy link
Member Author

dnhatn commented Jan 20, 2020

@ywelsch @jpountz Thanks for reviewing.

@dnhatn dnhatn merged commit c8e9f57 into elastic:master Jan 20, 2020
@dnhatn dnhatn deleted the frozen-indices-restart branch January 20, 2020 14:48
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Jan 20, 2020
Currently, we do not exclude soft-deleted documents when opening index
reader in the FrozenEngine.

Relates elastic#50775
dnhatn added a commit that referenced this pull request Jan 20, 2020
Currently, we do not exclude soft-deleted documents when opening index
reader in the FrozenEngine.

Backport of #51192
dnhatn added a commit that referenced this pull request Jan 21, 2020
Currently, we do not exclude soft-deleted documents when opening index
reader in the FrozenEngine.

Backport of #51192
dnhatn added a commit that referenced this pull request Jan 21, 2020
Currently, we do not exclude soft-deleted documents when opening index
reader in the FrozenEngine.

Backport of #51192
@tlrx tlrx mentioned this pull request Jan 22, 2020
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
Currently, we do not exclude soft-deleted documents when opening index 
reader in the FrozenEngine.

Relates elastic#50775
dnhatn added a commit that referenced this pull request Jan 23, 2020
IndexWriter might not filter out fully deleted segments if retention 
leases exist or the number of the retaining operations is non-zero.
SoftDeletesDirectoryReaderWrapper, however, always filters out fully
deleted segments.

This change uses the original directory reader when calculating segment 
stats instead.

Relates #51192
Closes #51303
dnhatn added a commit that referenced this pull request Jan 23, 2020
IndexWriter might not filter out fully deleted segments if retention
leases exist or the number of the retaining operations is non-zero.
SoftDeletesDirectoryReaderWrapper, however, always filters out fully
deleted segments.

This change uses the original directory reader when calculating segment
stats instead.

Relates #51192
Closes #51303
dnhatn added a commit that referenced this pull request Jan 23, 2020
IndexWriter might not filter out fully deleted segments if retention
leases exist or the number of the retaining operations is non-zero.
SoftDeletesDirectoryReaderWrapper, however, always filters out fully
deleted segments.

This change uses the original directory reader when calculating segment
stats instead.

Relates #51192
Closes #51303
dnhatn added a commit that referenced this pull request Jan 23, 2020
IndexWriter might not filter out fully deleted segments if retention
leases exist or the number of the retaining operations is non-zero.
SoftDeletesDirectoryReaderWrapper, however, always filters out fully
deleted segments.

This change uses the original directory reader when calculating segment
stats instead.

Relates #51192
Closes #51303
dnhatn added a commit that referenced this pull request Jan 23, 2020
Currently, we do not exclude soft-deleted documents
when opening index reader in the FrozenEngine.

Relates #50775
Backport of #51192
@polyfractal polyfractal added v7.6.0 and removed v7.6.1 labels Feb 7, 2020
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. v6.8.7 v7.5.2 v7.6.0 v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants