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

Occasional UniqueViolation in device_lists_remote_cache_unique_id #16243

Open
matrixbot opened this issue Dec 21, 2023 · 0 comments
Open

Occasional UniqueViolation in device_lists_remote_cache_unique_id #16243

matrixbot opened this issue Dec 21, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #16243.


e.g.

From looking at the source, the only insert that isn't an upsert I can see is

https://github.com/matrix-org/synapse/blob/69048f7b4848ab6a4ae6cb233f8cbf36d73c0ba1/synapse/storage/databases/main/devices.py#L1911-L1919

which might emit this error if

  • the same (user, device) ID appears twice in this batch of queries, or
  • this (user, device) pair already exists in the DB.

Tracebacks in Sentry seems to corroborate my suspicions --- they have the quoted function in their stack.

@matrixbot matrixbot changed the title Dummy issue Occasional UniqueViolation in device_lists_remote_cache_unique_id Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant