You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app
Claire 526332c545
Fix account deletion sometimes failing because of optimistic locks (#16317)
* Fix account deletion sometimes failing because of optimistic locks

In some rare occasions[1], deleting accounts would fail with a
`StaleObjectError` exception.

Indeed, account deletion manually sets the `AccountStat` values without
handling cases where the optimistic locking on `AccountStat` would fail.

To my knowledge, with the rewrite of account counters in #15913, the
`DeleteAccountService` is now the only place that changes the counters in
a way that is not atomic.

Since in this specific case, we do not care about the previous values of the
account counters, it appears we don't need locking at all for this table
anymore.

[1]: https://discourse.joinmastodon.org/t/account-cant-be-deleted/3602

* Bump MAX_SUPPORTED_VERSION in maintenance script
4 years ago
..
chewy Change `tootctl search deploy` algorithm (#14300) 5 years ago
controllers Fix some IDs in instance actor outbox (#16343) 4 years ago
helpers New Crowdin updates (#16269) 4 years ago
javascript Fix deprecated slash as division in SASS files (#16347) 4 years ago
lib Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
mailers Prepare Mastodon for Rails 6 (#15911) 4 years ago
models Fix account deletion sometimes failing because of optimistic locks (#16317) 4 years ago
policies Add management of delivery availability in Federation settings (#15771) 4 years ago
presenters Add server rules (#15769) 4 years ago
serializers Add width and height to attachments in ActivityPub (#16245) 4 years ago
services Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
validators Fix existing username validator not allowing multiple accounts (#16153) 4 years ago
views Change trending hashtags to be affected be reblogs (#16164) 4 years ago
workers Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago