You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just reproduced exactly this thing!
The collection is NOT DELETED
OS: Ubuntu
Typesense version: 0.26
UPDATE: This "delete bug" is not easy to reproduce.I saw it trying to delete and than immediately to create collection with the same name. All in Java code, with Typesense Java API.
I have to say, I did A LOT of upserts into this collection before, during several days (experimented with Typesense over a week, importing almost the same documents many times, with slightly different schemas)
Now I changed the collection name -to be able to continue- and... looks like this bug is gone.
There was no upserts/inserts into this new collection, and multiple delete collection+create worked
I will leave this issue open, but just want to add a note that:
client.collections("Countries").retrieve();
will NOT return null value when the collection is not found. It will throw an ObjectNotFound exception. So atleast for the original issue, checking for null is wrong.
Activity
stargazer33 commentedon Aug 13, 2024
I just reproduced exactly this thing!
The collection is NOT DELETED
OS: Ubuntu
Typesense version: 0.26
UPDATE: This "delete bug" is not easy to reproduce.I saw it trying to delete and than immediately to create collection with the same name. All in Java code, with Typesense Java API.
I have to say, I did A LOT of upserts into this collection before, during several days (experimented with Typesense over a week, importing almost the same documents many times, with slightly different schemas)
Now I changed the collection name -to be able to continue- and... looks like this bug is gone.
There was no upserts/inserts into this new collection, and multiple delete collection+create worked
kishorenc commentedon Aug 14, 2024
I will leave this issue open, but just want to add a note that:
will NOT return
nullvalue when the collection is not found. It will throw anObjectNotFoundexception. So atleast for the original issue, checking fornullis wrong.