Percona Server build fails on 128+ threads machines

Description

[100%] Generating Docs/INFO_BIN CMake Error at info_macros.cmake:190 (MESSAGE): mysqld --no-defaults --help failed: mysqld-debug: /home/przemyslaw.skibinski/mysql-server/percona-9.x/sql/sys_vars.h:228: Sys_var_integer<T, ARGT, SHOWT, SIGNED>::Sys_var_integer(const char*, const char*, int, ptrdiff_t, size_t, CMD_LINE, T, T, T, uint, PolyLock*, sys_var::binlog_status_enum, sys_var::on_check_function, sys_var::on_update_function, const char*, int) [with T = unsigned int; long unsigned int ARGT = 4; enum_mysql_show_type SHOWT = SHOW_INT; bool SIGNED = false; ptrdiff_t = long int; size_t = long unsigned int; uint = unsigned int; sys_var::on_check_function = bool (*)(sys_var*, THD*, set_var*); sys_var::on_update_function = bool (*)(sys_var*, THD*, enum_var_type)]: Assertion def_val <= max_val' failed. Call Stack (most recent call first): /home/przemyslaw.skibinski/mysql-server/percona-9.x/cmake/info_bin.cmake:37 (CREATE_INFO_BIN)

The issue comes from #define MAX_THREAD_GROUPS 128 at https://github.com/percona/percona-server/blob/8.0/sql/threadpool.h#L25
The issue is triggered by:

thread_pool_size default value: 192, Max value: 128

Environment

None

Activity

Przemyslaw Skibinski 
January 2, 2025 at 2:43 PM

The issue comes from Percona’s port of MariaDB feature.
It was fixed by MariaDB:
https://github.com/MariaDB/server/commit/fd9f1638ea7
https://github.com/MariaDB/server/commit/a588de1fe8d

Done

Details

Assignee

Reporter

Needs QA

Sprint

Priority

Created December 23, 2024 at 12:30 PM
Updated January 8, 2025 at 2:36 PM
Resolved January 8, 2025 at 2:36 PM

Flag notifications