Description
This bug has manifested itself in QUICKSTART, which is ugly. The problem occurs because ReplicaCacheDatabase.initialiseDB() is called from both the ArcRepositoryApplication and the GUIApplication. If both try to insert the same replica into the DB simultaneously then there can be a primary-key violation. The solution is to raise the transaction isolation level for this insert to Repeatable Read.