Skip to content

Migration 0019 fails with uniqueness violation #1071

@dkliban

Description

@dkliban

Version
3.23.1

django.db.utils.IntegrityError: duplicate key value violates unique constraint "core_artifact_sha384_pulp_domain_id_46f3e0f5_uniq"
DETAIL: Key (sha384, pulp_domain_id)=(aa14cc19a3bef3118208654d51af22dd1303c48a46eb9b30cbb4997c3505f1367c463dcff3253ba84103ed5ef2361693, 0199e33f-7907-7c1c-b026-99db98363d92) already exists.

The artifact never saves to the database. Seems like the transaction is rolled back. Seems like the batch has multiple Artifacts that have the same digests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions