Maxwell xid in the json written to the massage queue

ساخت وبلاگ

Vote count: 0

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,

  1. Is this xid unique for each event.
  2. 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.

asked 43 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 255 تاريخ : يکشنبه 13 تير 1395 ساعت: 20:13