You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG#16223835: UNEXPECTED EMPTY RESULTS OUT OF SHOW COMMANDS AFTER DUP GTID_NEXT TRANSACTION
When a transaction was skipped due to its GTID was already logged,
until GTID_NEXT was set to a different GTID, all the following
executed transactions were incorrectly skipped.
To avoid this incorrect behaviour, all executed transactions and
skipped transactions on AUTOCOMMIT=0 mode or which implicit commit
are marked as undefined (GTID_NEXT.type = UNDEFINED_GROUP) when them
commit or rollback. So when a second transaction is executed for the
same SET @@SESSION.GTID_NEXT command a error is thrown.
Copy file name to clipboardExpand all lines: mysql-test/suite/binlog/r/binlog_gtid_errors.result
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,8 +187,13 @@ SET @@SESSION.GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:13';
187
187
SET @@SESSION.GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:14';
188
188
ERROR HY000: @@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:13. Ownership is released on COMMIT or ROLLBACK.
189
189
SET @@SESSION.GTID_NEXT = 'AUTOMATIC';
190
+
ROLLBACK;
191
+
# can't set while owning a GTID
192
+
SET @@SESSION.GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:13';
193
+
SET @@SESSION.GTID_NEXT = 'AUTOMATIC';
190
194
ERROR HY000: @@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:13. Ownership is released on COMMIT or ROLLBACK.
191
195
ROLLBACK;
196
+
SET @@SESSION.GTID_NEXT = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:14';
192
197
# can't do implicit commit while gtid_next=SID:GNO
Copy file name to clipboardExpand all lines: sql/share/errmsg-utf8.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6938,7 +6938,7 @@ ER_READ_ONLY_MODE
6938
6938
eng "Running in read-only mode"
6939
6939
6940
6940
ER_GTID_NEXT_TYPE_UNDEFINED_GROUP
6941
-
eng "When @@SESSION.GTID_NEXT is set to a GTID, you must explicitly set it again after a COMMIT or ROLLBACK. If you see this error message in the slave SQL thread, it means that a table in the current transaction is transactional on the master and non-transactional on the slave. In a client connection, it means that you executed SET @@SESSION.GTID_NEXT before a transaction and forgot to set @@SESSION.GTID_NEXT to a different identifier or to 'AUTOMATIC' after COMMIT or ROLLBACK. Current @@SESSION.GTID_NEXT is '%s'."
6941
+
eng "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 '%s'."
6942
6942
6943
6943
ER_VARIABLE_NOT_SETTABLE_IN_SP
6944
6944
eng "The system variable %.200s cannot be set in stored procedures."
0 commit comments