Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another possible scenario for IntegrityError unique-etag-size #1920

Open
yarikoptic opened this issue Apr 13, 2024 · 0 comments
Open

Another possible scenario for IntegrityError unique-etag-size #1920

yarikoptic opened this issue Apr 13, 2024 · 0 comments

Comments

@yarikoptic
Copy link
Member

SEntry logged

Exception

AssetBlob.DoesNotExist: AssetBlob matching query does not exist.
  File "dandiapi/api/views/upload.py", line 264, in upload_validate_view
    asset_blob = AssetBlob.objects.select_for_update(no_key=True).get(

UniqueViolation: duplicate key value violates unique constraint "unique-etag-size"
DETAIL:  Key (etag, size)=(67d654429806997d34a161c72a5ebd72-1, 2171136) already exists.

  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: duplicate key value violates unique constraint "unique-etag-size"
DETAIL:  Key (etag, size)=(67d654429806997d34a161c72a5ebd72-1, 2171136) already exists.

(18 additional frame(s) were not displayed)
...
  File "dandiapi/api/views/upload.py", line 279, in upload_validate_view
    asset_blob.save()

and quick search lead to prior instances of such violation:

which was thought to be addressed by

but presence of a new violation attests that there is still some ways to trigger it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant