Skip to content

Zoekt indices without zoekt_repositories stuck in initializing

Summary

zoekt_indices which don't have any zoekt_repositories gets stuck in the initializing state. The task mark_indices_as_ready that is supposed to move these indices to ready can not move these indices to ready because the scope used in this task with_all_repositories_ready is moving only those indices to ready which have all zoekt_repositories. It is skipping the indices that don't have any zoekt_repositories

Steps to reproduce

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Possible fixes

Rewrite the scope with_all_repositories_ready to include the indices that don't have any zoekt_repositories as well.