I am faced with this problem when using gtid in MySQL replication:
When @@SESSION.GTID_NEXT is set to a GTID, you must explicitly set it to a different value after a COMMIT or ROLLBACK. Please check GTID_NEXT variable manual page for detailed explanation. Current @@SESSION.GTID_NEXT is 'xxx'"
It makes my slave SQL thread is impossible to run.
I am stuck with it. What is the cause of the problem ?