In the DoctrineOrmBasedMetadataPersister there is a race condition, both when inserting and updating.
Right now the inserting is handled by catching the exception, which doesn't really handle the problem.
When updating the metadata, it's the one that updates the last that wins. This could be handled with optimistic locking.
In the DoctrineOrmBasedMetadataPersister there is a race condition, both when inserting and updating.
Right now the inserting is handled by catching the exception, which doesn't really handle the problem.
When updating the metadata, it's the one that updates the last that wins. This could be handled with optimistic locking.