-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Data race leading to Multiple Database deadlocks processing 'Delete' Activity #15005
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
Open
1 task done
Labels
Comments
5 tasks
kakkokari-gtyih
pushed a commit
that referenced
this issue
Mar 1, 2025
#15005 Co-Authored-By: 饺子w (Yumechi) <[email protected]>
syuilo
added a commit
that referenced
this issue
Mar 1, 2025
#15005 Co-authored-by: 饺子w (Yumechi) <[email protected]>
直ってない |
Maybe consider retrying up to 2/3 times, it is accepted practice to do it for frequent mutations. Deadlock just means the database spent too much time on conflicting locks and would like to reject one of them for now so it does not cause memory leaks, if the condition is not a true deadlock you can just retry. |
ruruke
pushed a commit
to ruruke/rukey
that referenced
this issue
Mar 1, 2025
misskey-dev#15005 Co-authored-by: 饺子w (Yumechi) <[email protected]>
syuilo
added a commit
that referenced
this issue
Mar 2, 2025
* wip * wip * wip * Update SystemAccountService.ts * Update 1740121393164-system-accounts.js * Update DeleteAccountService.ts * wip * wip * wip * wip * Update 1740121393164-system-accounts.js * Update RepositoryModule.ts * wip * wip * wip * Update ApRendererService.ts * wip * wip * Update SystemAccountService.ts * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * add print logs * ログが長すぎて出てないかもしれない * fix migration * refactor * fix fed-tests * Update RelayService.ts * merge * Update user.test.ts * chore: emit log * fix: tweak sleep duration * fix: exit 1 * fix: wait for misskey processes to become healthy * fix: longer sleep for user deletion * fix: make sleep longer again * デッドロック解消の試み #15005 * Revert "デッドロック解消の試み" This reverts commit 266141f. * wip * Update SystemAccountService.ts --------- Co-authored-by: おさむのひと <[email protected]> Co-authored-by: zyoshoka <[email protected]>
harumaki2000
pushed a commit
to harumaki2000/misskey2000
that referenced
this issue
Mar 2, 2025
misskey-dev#15005 Co-authored-by: 饺子w (Yumechi) <[email protected]>
harumaki2000
pushed a commit
to harumaki2000/misskey2000
that referenced
this issue
Mar 2, 2025
* wip * wip * wip * Update SystemAccountService.ts * Update 1740121393164-system-accounts.js * Update DeleteAccountService.ts * wip * wip * wip * wip * Update 1740121393164-system-accounts.js * Update RepositoryModule.ts * wip * wip * wip * Update ApRendererService.ts * wip * wip * Update SystemAccountService.ts * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * add print logs * ログが長すぎて出てないかもしれない * fix migration * refactor * fix fed-tests * Update RelayService.ts * merge * Update user.test.ts * chore: emit log * fix: tweak sleep duration * fix: exit 1 * fix: wait for misskey processes to become healthy * fix: longer sleep for user deletion * fix: make sleep longer again * デッドロック解消の試み misskey-dev#15005 * Revert "デッドロック解消の試み" This reverts commit 266141f. * wip * Update SystemAccountService.ts --------- Co-authored-by: おさむのひと <[email protected]> Co-authored-by: zyoshoka <[email protected]>
DA-TENSHI
pushed a commit
to SHINANOSKEY-Projekt/SHINANOSKEY
that referenced
this issue
Mar 6, 2025
misskey-dev#15005 Co-authored-by: 饺子w (Yumechi) <[email protected]>
DA-TENSHI
pushed a commit
to SHINANOSKEY-Projekt/SHINANOSKEY
that referenced
this issue
Mar 6, 2025
* wip * wip * wip * Update SystemAccountService.ts * Update 1740121393164-system-accounts.js * Update DeleteAccountService.ts * wip * wip * wip * wip * Update 1740121393164-system-accounts.js * Update RepositoryModule.ts * wip * wip * wip * Update ApRendererService.ts * wip * wip * Update SystemAccountService.ts * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * add print logs * ログが長すぎて出てないかもしれない * fix migration * refactor * fix fed-tests * Update RelayService.ts * merge * Update user.test.ts * chore: emit log * fix: tweak sleep duration * fix: exit 1 * fix: wait for misskey processes to become healthy * fix: longer sleep for user deletion * fix: make sleep longer again * デッドロック解消の試み misskey-dev#15005 * Revert "デッドロック解消の試み" This reverts commit 266141f. * wip * Update SystemAccountService.ts --------- Co-authored-by: おさむのひと <[email protected]> Co-authored-by: zyoshoka <[email protected]>
ruruke
pushed a commit
to ruruke/rukey
that referenced
this issue
Mar 6, 2025
* wip * wip * wip * Update SystemAccountService.ts * Update 1740121393164-system-accounts.js * Update DeleteAccountService.ts * wip * wip * wip * wip * Update 1740121393164-system-accounts.js * Update RepositoryModule.ts * wip * wip * wip * Update ApRendererService.ts * wip * wip * Update SystemAccountService.ts * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * add print logs * ログが長すぎて出てないかもしれない * fix migration * refactor * fix fed-tests * Update RelayService.ts * merge * Update user.test.ts * chore: emit log * fix: tweak sleep duration * fix: exit 1 * fix: wait for misskey processes to become healthy * fix: longer sleep for user deletion * fix: make sleep longer again * デッドロック解消の試み misskey-dev#15005 * Revert "デッドロック解消の試み" This reverts commit 266141f. * wip * Update SystemAccountService.ts --------- Co-authored-by: おさむのひと <[email protected]> Co-authored-by: zyoshoka <[email protected]>
Gingarenpo
pushed a commit
to Gingarenpo/G-Misskey
that referenced
this issue
Apr 10, 2025
misskey-dev/misskey#15005 Co-authored-by: 饺子w (Yumechi) <[email protected]>
Gingarenpo
pushed a commit
to Gingarenpo/G-Misskey
that referenced
this issue
Apr 10, 2025
* wip * wip * wip * Update SystemAccountService.ts * Update 1740121393164-system-accounts.js * Update DeleteAccountService.ts * wip * wip * wip * wip * Update 1740121393164-system-accounts.js * Update RepositoryModule.ts * wip * wip * wip * Update ApRendererService.ts * wip * wip * Update SystemAccountService.ts * fix tests * fix tests * fix tests * fix tests * fix tests * fix tests * add print logs * ログが長すぎて出てないかもしれない * fix migration * refactor * fix fed-tests * Update RelayService.ts * merge * Update user.test.ts * chore: emit log * fix: tweak sleep duration * fix: exit 1 * fix: wait for misskey processes to become healthy * fix: longer sleep for user deletion * fix: make sleep longer again * デッドロック解消の試み misskey-dev/misskey#15005 * Revert "デッドロック解消の試み" This reverts commit 266141f66fb584371bbb56ef7eba04e14bcff94d. * wip * Update SystemAccountService.ts --------- Co-authored-by: おさむのひと <[email protected]> Co-authored-by: zyoshoka <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
💡 Summary
リモートから"Delete"と"Update"アクテビティがデータ競合あります、同時に受け取ったら競合を起こりアカウントは削除できません。
Proposed fix (not deployed yet) partially taken from #14752, should also fix #14728 as a side effect : https://forge.yumechi.jp/yume/yumechi-no-kuni/commit/7a581b7e80209c30cef7b47f95efa40e3f0f3797
Partial diff:
🥰 Expected Behavior
Delete アクティビティの処理アトミック化にして上にUpdateより優先する。
🤬 Actual Behavior
Deadlockを何回繰り返している
📝 Steps to Reproduce
I can't reproduce it on purpose but I did contact another instance owner and they observed the same issue ...
前提条件が複雑ために意図的に再現することはできませんが、別のインスタンス所有者に連絡したところ、同じ問題が発生しているそうです。
💻 Frontend Environment
🛰 Backend Environment (for server admin)
Do you want to address this bug yourself?
The text was updated successfully, but these errors were encountered: