mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35304: Add Connects_Tried
and Master_Retry_Count
to SSS
When the IO thread (re)connect to a primary, no updates are available besides unique errors that cause the failure. These new `Master_info` numbers supplement SHOW SLAVE STATUS’s (most- recent) ‘Connecting’ state with statistics on (re)connect attempts: * `Connects_Tried`: how many retries have been attempted so far This was previously a local variable that only counted re-attempts; it’s now meaningful even after the “Connecting” state concludes. * `Master_Retry_Count` (from MDEV-25674): out of how many configured Side-note: Some of the tests updated by this commit dump the entire SHOW SLAVE STATUS, which might include non-deterministic entries. Reviewed-by: Kristian Nielsen <knielsen@knielsen-hq.org> Reviewed-by: Brandon Nesterenko <brandon.nesterenko@mariadb.com>
This commit is contained in:
@@ -469,7 +469,7 @@ static void test_prepare_simple()
|
||||
strmov(query, "SHOW SLAVE STATUS");
|
||||
stmt= mysql_simple_prepare(mysql, query);
|
||||
check_stmt(stmt);
|
||||
DIE_UNLESS(mysql_stmt_field_count(stmt) == 54);
|
||||
DIE_UNLESS(mysql_stmt_field_count(stmt) == 56);
|
||||
mysql_stmt_close(stmt);
|
||||
|
||||
/* show master status */
|
||||
|
Reference in New Issue
Block a user