[MDEV-32892] IO Thread Reports False Error When Stopped During Connecting to Primary Created: 2023-11-27  Updated: 2024-02-08

Status: Open
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2

Type: Bug Priority: Major
Reporter: Brandon Nesterenko Assignee: Brandon Nesterenko
Resolution: Unresolved Votes: 0
Labels: beginner-friendly


 Description   

If quickly running

start slave io_thread;
stop slave io_thread;

and the IO thread is stopped during its "handshake" with the primary (i.e during safe_connect() or get_master_version_and_clock()), it will report IO Errno: 2013 in SHOW SLAVE STATUS.

However, this isn't actually an error, as the user aborted the IO thread. The code should be updated to not report an error when the connection is killed due to user intervention.



 Comments   
Comment by Sergei Golubchik [ 2023-12-24 ]

https://github.com/MariaDB/server/pull/2963/

Generated at Thu Feb 08 10:34:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.