Steps to reproduce it:
- Startup the server
- Execute the following query in the database:
- Execute the following groovy script using a much higher value than the currentId, for example 50000 in this case:
- Execute the query again
The output of the script is higher than the value in the database. This means that we have increment the excepted size in memory but not in the database so next time we restart the server we can generate duplicates.
The value for currentId is higher (100) than the output of the script.