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

fix(indexing): replaceAllObjects blocked if called for non-existent index #699

Merged
merged 4 commits into from
Aug 29, 2022

Conversation

VladislavFitz
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #694
Need Doc update no

Describe your change

Add a check if the index exists in the ReplaceAllObjects function body.
If the index doesn't exist, only the SaveObjects operation will be executed which creates the index and saves the provided objects into it.

What problem is this fixing?

ReplaceAllObjects hangs indefinitely if the index does not exist (#694). This happens due to infinite CopyIndex task when called for a non-existent index: the task successfully starts successfully but never accomplishes.

@VladislavFitz VladislavFitz requested a review from samouss August 25, 2022 13:45
@VladislavFitz VladislavFitz requested a review from samouss August 26, 2022 12:00
@VladislavFitz VladislavFitz force-pushed the fix/replace-non-existent-index-block branch from 62b1f3a to 02eb3c9 Compare August 29, 2022 12:02
@VladislavFitz VladislavFitz merged commit 29468c2 into master Aug 29, 2022
@VladislavFitz VladislavFitz deleted the fix/replace-non-existent-index-block branch August 31, 2022 09:36
mehmetaligok pushed a commit that referenced this pull request May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReplaceAllObjects hangs indefinitely if the index does not exist
2 participants