pt-slave-restart cannot handle multiple GTIDs

Description

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.

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.

Done

Details

Assignee

Reporter

Priority

Affects versions

Needs QA

Yes

Smart Checklist

Created September 9, 2024 at 9:04 PM
Updated November 5, 2024 at 1:26 PM
Resolved November 5, 2024 at 1:26 PM