Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix bug when inserting previously deleted documents #269

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented Jun 30, 2021

This PR fixes #268.

The issue was in the ExternalDocumentsIds implementation in the specific case that an external document id was in the soft map marked as deleted.

The bug was due to a wrong assumption on my side about how the FST unions were returning the IndexedValues, I thought the values returned in an array were in the same order as the FSTs given to the OpBuilder but in fact, the IndexedValue's index field was here to indicate from which FST the values were coming from.

@Kerollmops Kerollmops requested a review from irevoire June 30, 2021 09:28
@Kerollmops Kerollmops added the bug Something isn't working label Jun 30, 2021
@Kerollmops Kerollmops changed the title Fix bug when inserting previsouly deleted documents Fix bug when inserting previously deleted documents Jun 30, 2021
@Kerollmops
Copy link
Member Author

Thank you @irevoire.
bors merge

@bors
Copy link
Contributor

bors bot commented Jun 30, 2021

@bors bors bot merged commit b4dcdbf into main Jun 30, 2021
@bors bors bot deleted the fix-dup-insert-after-delete branch June 30, 2021 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Critical issue when adding/deleting documents
2 participants