pt-slave-restart cannot handle multiple GTIDs
General
Escalation
General
Escalation
Description
Environment
None
Activity
Show:

Aaditya Dubey September 10, 2024 at 2:30 PM
Hi
Thank you for the report and patch.
Unfortunately, I'm unable to repeat the issue, please let me know the complete repeating test case.

Matthew Boehm September 10, 2024 at 1:37 PM
quick patch. the idea is to split the Executed_GTID string on ‘,\n’ (comma-newline) into an array, then loop through the array looking for the source’s matching UUID. After that, everything is the same. This patch should work even when Executed_GTID is a single entry.
You can see pt-slave-restart getting tripped up based on the newline character and subsequent 2nd GTID set part of the Executed_GTID_Set.