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

#1703 fixed wrongly emptied out search index on policy retrieval error due to internal timeouts #1751

Merged

Conversation

thjaeckle
Copy link
Member

Fixes: #1703

@thjaeckle thjaeckle added this to the 3.3.7 milestone Sep 15, 2023
@thjaeckle
Copy link
Member Author

thjaeckle commented Sep 15, 2023

@alstanchev / @kalinkostashki this is a little fix I would add to 3.4.0

This is quite nasty if many things use a single policy and this is changed .. due to load and internal "ask timeouts" it may lead to that a lot of search index entries are basically removed and the things are no longer findable.

For such internal timeouts I added that the entry is not removed from the search index - which will lead to the "Background sync" mechanism of the search to ensure eventual consistency, applying the potentially changed policy later.

…r due to internal timeouts

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle force-pushed the bugfix/fix-emptied-out-search-index-on-policy-failed-fetch branch from 9578f85 to abda3b4 Compare September 15, 2023 15:23
@thjaeckle thjaeckle self-assigned this Sep 15, 2023
@thjaeckle thjaeckle modified the milestones: 3.3.7, 3.4.0 Sep 18, 2023
Copy link
Contributor

@alstanchev alstanchev left a comment

Choose a reason for hiding this comment

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

LGTM

@thjaeckle thjaeckle merged commit dc797b0 into master Sep 20, 2023
3 checks passed
@thjaeckle thjaeckle deleted the bugfix/fix-emptied-out-search-index-on-policy-failed-fetch branch September 20, 2023 16:31
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Failed retrieval of a policy (e.g. after policy change) leads to search index being "emptied out"
2 participants