I can see in the json below we get a xid in all jasons written to the kafka.
{"database":"TEST","table":"MAXWELL","type":"insert","ts":1465806121,"xid":2009527,"commit":true,"data":{"id":5,"name":"FIVE"}}
{"database":"TEST","table":"MAXWELL","type":"insert","ts":1465806201,"xid":2009701,"commit":true,"data":{"id":6,"name":"SIX"}}
What I want to know is,
- Is this xid unique for each event.
- This this even is resent for some reason, will that events have the same xid?
I tried re-sending the same event by manually changing the positions.binlog_positions and starting a new maxwell instance in a new server. I got same xids for same events from new maxwell instance.
I just want to know If this work like that always. So that I can you that xid to uniquely identify a database event.