rdisabato opened a new issue, #14390:
URL: https://github.com/apache/grails-core/issues/14390

   Hello,
   
   we are using Grails 4.0.2 and Gorm 7.0.3 with Mongo engine set to "codec".
   
   We have an entity with an attribute marked as "unique" in constraints.
   
   If we save more of these entities with the same attribute value by calling 
an API more times (one write for each API call), and time interval between each 
call is more than about 400-500 ms, the Gorm engine correctly responds that an 
entity with the same value already exist.
   On the other way, if we make more API calls rapidly, with a time interval of 
about 50-150 ms, often this results in more entities saved to the db with the 
same attribute value. 
   
   We also reproduce this by invoking the API through asynchronous calls from a 
javascript for loop at client side in the same network.
   
   I think this is very easy to reproduce, but if you need more informations we 
are available.
   
   If this results in a real bug and not in an our mistake this could be a very 
bad problem.
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to