We have a single project that sometimes get some process definitions deployed twice, with same version number. It happened with differents process definitions already, and even deploying many changed bpmns in the same commit, always duplicated only one of them in a new camunda deployment.
Actually we are running camunda springboot in kubernetes, with 2 containers, using a mysql 5.7 as database.
We have these properties set in the processes.xml:
Camunda springboot starter 3.0.0
Mysql connector 8.0.11
Already checked my global transaction level and its set to READ-COMMITED
When this happens, we can see two deploys in cockpit, with only a few seconds (sometimes miliseconds) between them, and the last one has only the duplicated resource:
In the process definition list, in cockpit, one of them appears ok but the other one has a refreshing icon forever, both of them with the same name:
If we try to delete the deployment, it fails:
And i can see the duplicated row in database, with different ID_ but with the same KEY_,VERSION_ and RESOURCE_NAME_: