mirror of https://github.com/sysown/proxysql
Follow-up to cbbd10ba7 (skip native_password backend fixtures on MySQL 9.x).
The Phase-3 end-to-end loop runs RAND_USERS_GEN (100) iterations on 8.4
— 50 with mysql_native_password + 50 with caching_sha2_password — and
each successful login creates one backend connection. On 9.x the native
half is skipped, so only 50 actual connections are made.
The post-loop assertion "Number of backend conns created should match
conn attempts" was hardcoded to compare against RAND_USERS_GEN. When
native was skipped, actual=50 but expected=100, producing:
not ok 2113 - Number of backend conns created should match conn
attempts exp:'100', act:'50'
Fix: compute expected_conns based on g_mysql_supports_native_password
(the same flag that gates the Phase-3 loop range) and use it both for
the wait_for_cond() condition string and the assertion.
Verified on a live mysql90 backend: test now reports
ok 2113 - ... exp:'50', act:'50'
and exits 0 (2113/2113 assertions pass in 3.4s).
v3.0-dbdeployer-mysql84-gr
parent
cbbd10ba74
commit
d5b796cdea
Loading…
Reference in new issue