Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Feb 25, 2020

Today we use the default IndexWriterConfig during the initialization of searchable snapshots Directory instances. This IndexWriterConfig is used when opening an IndexWriter that is later committed in order to associate an empty translog with the Lucene index built from the snapshot.

Since the snapshot might contain soft deletes, the IndexWriterConfig should also declares a soft delete field otherwise it might just fail opening some Lucene files.

@tlrx tlrx added >bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Feb 25, 2020
@tlrx tlrx requested a review from DaveCTurner February 25, 2020 17:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

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.

LGTM

@tlrx tlrx merged commit 308adaa into elastic:feature/searchable-snapshots Feb 26, 2020
@tlrx tlrx deleted the account-for-soft-deletes branch February 26, 2020 08:24
@tlrx
Copy link
Member Author

tlrx commented Feb 26, 2020

Thanks Nhat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants