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

Cleaning up failed indexes when using --use-alias #476

Open
llexical opened this issue Feb 27, 2024 · 0 comments
Open

Cleaning up failed indexes when using --use-alias #476

llexical opened this issue Feb 27, 2024 · 0 comments

Comments

@llexical
Copy link

When using the --use-alias flag when reindexing: search_index --rebuild --use-alias if the index fails due to an errored document or any other potential issue the new index that was created is then left behind and not cleaned up. This means if you are trying to debug what is going on or have a bug that's causing issues you can end up with a lot of orphaned indexes hanging around which you need to manually go into remove.

A simple solution to this is to remove the new index you just created on failure. If people find those failed indexes useful then a flag could be used to tidy up the failed index to give people the choice.

I have solved a similar problem before and am more than happy to work on it if others think it's a good idea. More than happy for feedback etc. If there's another way around this problem I just haven't spotted I would appreciate being directed to the right place!

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

No branches or pull requests

1 participant