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

x-repo search cache rebuild first deletes all previous entries #1396

Closed
jctanner opened this issue Mar 22, 2023 · 0 comments · Fixed by #1399
Closed

x-repo search cache rebuild first deletes all previous entries #1396

jctanner opened this issue Mar 22, 2023 · 0 comments · Fixed by #1399

Comments

@jctanner
Copy link
Contributor

jctanner commented Mar 22, 2023

Version
head once #1357 is merged

Describe the bug
x-repo search wipes out the entire cache for a repository with no repository version before repopulating it. Clients will see no results or fewer results while the cache rebuilds. We need to enhance that behavior to retain as many entries as possible without deleting them. This also affects "performance" in the sense that an upload or a sync will take a bit longer for a cache rebuild than is absolutely necessary.

To Reproduce
Upload a CV to a repository with a distro that points at the repository instead of a repository version.
Query the search endpoint to check the total count while the upload is processing.

Expected behavior
The total count in the results should remain at a consistent level.

Additional context

jctanner added a commit to jctanner/pulp_ansible that referenced this issue Mar 23, 2023
fixes: pulp#1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
jctanner added a commit to jctanner/pulp_ansible that referenced this issue Mar 23, 2023
fixes: pulp#1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
jctanner added a commit to jctanner/pulp_ansible that referenced this issue Mar 23, 2023
fixes: pulp#1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
jctanner added a commit to jctanner/pulp_ansible that referenced this issue Mar 23, 2023
fixes: pulp#1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
jctanner added a commit to jctanner/pulp_ansible that referenced this issue Mar 23, 2023
fixes: pulp#1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
gerrod3 pushed a commit that referenced this issue Mar 23, 2023
* Selectively delete removed content from the x-repo search index.

fixes: #1396

Signed-off-by: James Tanner <tanner.jc@gmail.com>
@pulpbot pulpbot moved this to Done in RH Pulp Kanban board Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant