Merge MySQL 5.7.18

Registered by Laurynas Biveinis

https://github.com/percona/percona-server/pull/1695

Merge MySQL 5.7.18.

Verify upstream and revert our fixes of:
- https://bugs.mysql.com/bug.php?id=82307 / bug 1604774
- Oracle's #22904496 "TEST FAILURE DUE TO STOPPED SLAVE COORDINATOR AND WORKER THREADS" / bug 1648389

Blueprint information

Status:
Complete
Approver:
Laurynas Biveinis
Priority:
Essential
Drafter:
Laurynas Biveinis
Direction:
Approved
Assignee:
Laurynas Biveinis
Definition:
Approved
Series goal:
Accepted for 5.7
Implementation:
Implemented
Milestone target:
milestone icon 5.7.18-14
Started by
Laurynas Biveinis
Completed by
Laurynas Biveinis

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.