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
How to reproduce: Start spring data arango, go to database web ui and delete collection "X" from ui, then call to collection("X").truncate() will raise an error.
ArangoContext not reflexing the change on database, thus collection("X") not returning null, and no new collection is created automatically.
Expected behavior: Arango detects the change, and create a new collection named "X" automatically so subsequently call to truncate() will success.
The text was updated successfully, but these errors were encountered:
There is already an ongoing discussion about collections creation on startup: #125
The main idea is to optionally create collections and indexes once for all at startup.
So in order to address your needs, I would suggest you implementing such checks in your code, in case using the underlying Java driver directly, eg.:
Thanks, that does work. However my scenario is a bit different, I deleted the database during runtime, so creating collection at startup does not seem like an option for me.
I hope there is an option to invalid the cache on the template level.
I am afraid this is quite an unusual use case that is not addressed by Spring Data.
I would suggest you dealing with it catching the ArangoExceptions related to database/collection not found and recreating db, collections and indexes in such cases.
How to reproduce: Start spring data arango, go to database web ui and delete collection "X" from ui, then call to collection("X").truncate() will raise an error.
ArangoContext not reflexing the change on database, thus collection("X") not returning null, and no new collection is created automatically.
Expected behavior: Arango detects the change, and create a new collection named "X" automatically so subsequently call to truncate() will success.
The text was updated successfully, but these errors were encountered: