[Discussion] Keeping or removing the check on index existence in list_splits
method
#3760
Labels
enhancement
New feature or request
list_splits
method
#3760
Currently, in
list_splits
, we return filtered splits notably with a filter on index UIDs.In cases where an index does not exist, we have a different behavior between the file-backed metastore and the PostgreSQL metastore.
IndexesDoNotExist.
(note that the PR on the multi-indexes #3734 introduced this discrepancy).
Also, with the multi indexes features, querying splits while a user deletes some indexes will more likely happen (scenario such as "a user makes a search query on a list of indexes, an admin user deletes one of the indexes, the user gets an error").
One pro for returning an error when an index does not exist is that the caller gets the right error immediately. This is useful in Quickwit's code base as we can react to this error and stop getting splits from the metastore for a given index.
This is why I'm currently reluctant to drop the existence check.
The text was updated successfully, but these errors were encountered: