We’re experiencing an issue where we recently upgraded some of our systems to Asterisk 20.8.1. We also moved to the res_odbc.so module.
We have since been seeing MariaDB lock up on these instances due to:
cdr_adaptive_odbc.c: SQL Execute returned an error -1: 42000: [ma-3.2.2][10.5.8-MariaDB-log]Can't create more than max_prepared_stmt_count statements (current value: 16382) (110)
We have found that reloading the res_odbc.so module does release these prepared statements. Has anyone experienced this before or has any suggestions on what the fix could be here?