[Crunch2] crunchrun.go should avoid name collisions when creating log collections
(Total: 0.00 h)
#2 Updated by Lucas Di Pentima 12 months ago
We've been seeing CR logs with messages like this:
2017-03-01T17:31:40.739323663Z While creating log collection: arvados API server error: #<PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_collections_on_owner_uuid_and_name" 2017-03-01T17:31:40.739323663Z DETAIL: Key (owner_uuid, name)=(tb05z-tpzed-000000000000000, logs for tb05z-dz642-eie1eal1059y9bb) already exists.
If for some reason the process quits after writing the log collection, the next time that is retried, it will cause a PG::UniqueViolation error.