Comments (4)
With mysqlbinlog --hexdump
I can see that there are SET @@SESSION.GTID_NEXT
records in the binlog, I just have to figure out how to get them (or get them past my filters, which are currently allowing only UPDATE_ROWS_EVENTv2 and WRITE_ROWS_EVENTv2)
# at 12893
#170221 4:33:21 server id 9975084 end_log_pos 12941 CRC32 0xf0b319b9
# Position Timestamp Type Master ID Size Master Pos Flags
# 325d 11 c3 ab 58 21 2c 35 98 00 30 00 00 00 8d 32 00 00 00 00
# 3270 01 37 a6 94 64 f5 8a 11 e6 93 fb 02 42 ac 14 00 |.7..d.......B...|
# 3280 03 11 00 00 00 00 00 00 00 b9 19 b3 f0 |.............|
# GTID [commit=yes]
SET @@SESSION.GTID_NEXT= '37a69464-f58a-11e6-93fb-0242ac140003:17'/*!*/;
# at 12941
from go-mysql.
Ah... It looks like the GTID_EVENT
is a separate event that occurs before (or after?) the event that it labels.
from go-mysql.
So the sequence of the binlog leading up to a RowsEvent for my data, seems to be:
GTIDEvent, which says SET @@SESSION.GTID_NEXT= 'uuid:57'/*!*/;
QueryEvent
TableMapEvent
RowsEvent
It's all there. The gtid just comes before the rows-event as a distinct and separate event, 3 events prior to the rows that it applies to.
from go-mysql.
👍
from go-mysql.
Related Issues (20)
- Tables
- Why In OnRow e.Header is nil ,no e.Header.LogPos
- canal can't send create index and drop index sql HOT 2
- MySQL 8.3 will introduce new GTID format
- [Warning] Aborted connection 52412 to db: 'unconnected' user: 'boss' host: '' (Got an error reading communication packets) HOT 7
- how to remove log output HOT 2
- column values missing
- help to understand why do we dump some data first before sync the data from binlog HOT 4
- How to use TRANSACTION_CONTEXT_EVENT for the replication HOT 2
- Driver Compression Enablement HOT 5
- Enabling compression on client connection results in "connection was bad" error HOT 4
- Setting collations need adjustment HOT 2
- Support MySQL 8.4.0
- Client unable to select from function when compression is enabled. HOT 5
- to exclude databases with ExcludeTableRegex
- Random connection failure in readInitialHandshake() HOT 12
- Add support for using RDS IAM with canal HOT 2
- Can I use this library to parse bytes to MySQL protocol? HOT 1
- There is one more column when consuming Alibaba Cloud PolarDB HOT 11
- When consuming Alibaba Cloud PolarDB, there is one more column than the fields in the table. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-mysql.