Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

user_ip delete duplicates failed, causing lots of fun errors trying to create the index in the background #4398

Closed
turt2live opened this issue Jan 15, 2019 · 3 comments
Assignees
Labels
z-bug (Deprecated Label)

Comments

@turt2live
Copy link
Member

2019-01-15 23:15:58.030 CET [18989] ERROR:  canceling autovacuum task
2019-01-15 23:15:58.030 CET [18989] CONTEXT:  automatic vacuum of table "synapse.public.user_ips"
2019-01-15 23:15:58.078 CET [18806] t2botsynapse@synapse ERROR:  could not serialize access due to concurrent update
2019-01-15 23:15:58.078 CET [18806] t2botsynapse@synapse STATEMENT:  DELETE FROM user_ips WHERE user_id = '@telegram_redacted:t2bot.io' AND access_token = 'redacted' AND ip = 'redacted'

then a few hundred of these:

2019-01-15 23:17:36.451 CET [18919] t2botsynapse@synapse ERROR:  could not create unique index "user_ips_user_token_ip_unique_index"
2019-01-15 23:17:36.451 CET [18919] t2botsynapse@synapse DETAIL:  Key (user_id, access_token, ip)=(@_discord_redacted:t2bot.io, redacted, redacted) is duplicated.
2019-01-15 23:17:36.451 CET [18919] t2botsynapse@synapse STATEMENT:  CREATE UNIQUE INDEX CONCURRENTLY user_ips_user_token_ip_unique_index ON user_ips (user_id, access_token, ip)
@turt2live
Copy link
Member Author

somewhat interesting: I started with 3655 duplicates and after waiting for the deduper to run I had 3655 duplicates.

@neilisfragile
Copy link
Contributor

Related #4370

@richvdh
Copy link
Member

richvdh commented Jan 29, 2019

I think we fixed this in #4434.

@richvdh richvdh closed this as completed Jan 29, 2019
Superceded by https://github.com/orgs/matrix-org/projects/8 automation moved this from Holding pen to Done - Operations Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label)
Projects
No open projects
Development

No branches or pull requests

4 participants