Try to see if in PDO we can create a temp table & drop it in a way that writes out of order to the binlog. If so we can report upstream ...
Interesting link & thanks for jumping in. The issue we experienced is that a routine on master creates a temp table & then drops it - but in the binlog the table is dropped & then created - leading to ever increasing numbers of open temp tables
This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!
For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)