slave config file option max-reconnects doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
max-reconnects specified in the slave config file does not work. It seems the code only uses the default 10.
To reproduce:
[master1]
master-user=slave1
master-
max-reconnects=2
Start slave, see in error log:
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Replication slave: Access denied for user 'slave1' (using password: YES)
Related branches
- David Shrewsbury (community): Disapprove
- Drizzle Trunk: Pending requested
-
Diff: 267 lines (+84/-65)3 files modifiedplugin/slave/queue_producer.cc (+55/-41)
plugin/slave/queue_producer.h (+2/-2)
plugin/slave/replication_slave.cc (+27/-22)
Changed in drizzle: | |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
assignee: | nobody → Daniel Nichter (daniel-nichter) |
milestone: | none → 7.2.1 |
Changed in drizzle: | |
status: | In Progress → Fix Committed |
Changed in drizzle: | |
assignee: | Daniel Nichter (daniel-nichter) → nobody |
The linked branch makes io-thread-sleep and seconds- between- reconnects per-master options, so http:// docs.drizzle. org/replication /appliers/ slave/configura tion.html# configuring- a-slave will need to be updated.