DB constraint violation when uploading to the Generic Package Registry
🔥 Problem
It seems that for some Generic Package uploads we hit an issue with a constraint in the database.
This needs a small investigation but it might be possible that we receive many similar requests for the exact same package name + version = race condition.
🚒 Solution
- Investigate if we have a race condition when uploading generic packages
- Update how packages rows are inserted in the database. One possible solution could be using
upsert
.
Edited by David Fernandez