Bug #105114 Improve clone logging
Submitted: 4 Oct 2021 8:02 Modified: 4 Oct 2021 8:07
Reporter: Simon Mudd (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Logging Severity:S4 (Feature request)
Version:8.0.26 OS:Any
Assigned to: CPU Architecture:Any
Tags: Clone, logging, show user/host/port, show version

[4 Oct 2021 8:02] Simon Mudd
Description:

When triggering a clone between versions which were not the same I saw in logging on the destination server:

2021-10-01T17:09:07.317212Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Task Connect.'
2021-10-01T17:09:07.333324Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Master ACK Connect.'
2021-10-01T17:09:07.333377Z 7 [Note] [MY-013457] [InnoDB] Clone Apply Begin Master Version Check
2021-10-01T17:09:07.635166Z 7 [Note] [MY-013457] [InnoDB] Clone Apply Version End Master Task ID: 0 Passed, code: 0:
2021-10-01T17:09:07.678273Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Wait for remote after local issue: error: 3864: Clone Donor MySQL version: 8.0.25 is different from Recipient MySQL version 8.0.26..'
2021-10-01T17:09:07.678344Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Command COM_INIT: error: 3864: Clone Donor MySQL version: 8.0.25 is different from Recipient MySQL version 8.0.26..'
2021-10-01T17:09:07.678749Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Master ACK COM_EXIT.'
2021-10-01T17:09:07.680465Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Master ACK Disconnect : abort: false.'
2021-10-01T17:09:07.680800Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Task COM_EXIT.'
2021-10-01T17:09:07.682288Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Client: Task Disconnect : abort: false.'

It is unclear which server is being talked to.

How to repeat:
Clone by mistake between different versions and see this error message

Suggested fix:

Change the line: 'Task Connect.' to:

2021-10-01T17:09:07.317212Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Clone Connect to <username>@<host>:<port>.'

When you know the version log at least once:

2021-10-01T17:09:07.317212Z 7 [Note] [MY-013272] [Clone] Plugin Clone reported: 'Remote version at [<username>@]<host>:<port> runs version 8.0.26.'
[4 Oct 2021 8:07] MySQL Verification Team
Hello Simon,

Thank you for the feature request!

regards,
Umesh