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

Still Deadlocks when using MariaDB #2408

Open
adamseeliger opened this issue Mar 25, 2024 · 1 comment
Open

Still Deadlocks when using MariaDB #2408

adamseeliger opened this issue Mar 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adamseeliger
Copy link

Issue 2063 is closed, but we still see Deadlocks using MariaDB.

FreeSWITCH Version 1.10.11
bitnami/mariadb-galera:11.2.2

mod_mariadb.c:274 Could not commit transaction: Deadlock found when trying to get lock; try restarting transaction

There are no other erros / exceptions in the freeswitch / mariadb logs.

We use mod_xml_curl for registrations and mod_sofia for client connections.

@adamseeliger adamseeliger added the bug Something isn't working label Mar 25, 2024
@wangcc57
Copy link

"update sip_registrations set ping_expires" of internal and external will trigger this deadlock, sometime the X lock of mysql will lock,so you can add a mutex in Sofia, before you update this table, lock the mutex, and after unlock.

sofia_reg.c method sofia_reg_check_ping_expire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants