This commit addresses failure in test_com_register_slave_enables_fast_forward-t
by ensuring the required test user exists and increasing verbosity.
Key changes:
- In test_binlog_reader-t.cpp:
- Added explicit ProxySQL Admin commands to create/replace the 'sbtest8'
user with 'fast_forward=0' before the test begins. This ensures the
user exists regardless of pre-existing database state.
- Added logic to verify user existence in 'runtime_mysql_users' if
initial connection fails, providing better debugging context.
- Integrated detailed diag() messages across all major steps: table
creation, data insertion, and GTID tracking checks.
- Fixed a printf format warning by using %llu for my_ulonglong.
- In test_com_register_slave_enables_fast_forward-t.cpp:
- Added initial diagnostic messages to explain test intent.
- Improved error reporting when the sub-test (test_binlog_reader-t) fails.
diag("Testing COM_REGISTER_SLAVE enables fast forward");
diag("This test verifies that ProxySQL correctly enables fast forward for a user when it receives COM_REGISTER_SLAVE, even if it was initially disabled.");