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)
- TableMapEvent 中 ColumnName 获取列名称是空数据。mysql是5.7版本 HOT 5
- Can we only focus the data changes of the tables we care about? HOT 1
- 关于Canal的binlog事件重试疑问 HOT 1
- 什么情况下event.Rows长度会为0 或者为nil? HOT 1
- When will the length of event.Rows be 0 or nil? HOT 4
- invalid sequence 0 != 1 HOT 6
- canal.RowsEvent returns 2 duplicate rows for every update event HOT 2
- Proper way to save position after Canal OnRow event HOT 3
- canal处理Text类型字段时增量日志和存量日志对应的数据结构不同 HOT 1
- add value string output HOT 5
- add a EventCacheSize variable to BinlogSyncerConfig to limit the streamer's memory usage
- How to start binlog syncer from last position HOT 3
- 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
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.