Git Product home page Git Product logo

Comments (23)

osheroff avatar osheroff commented on June 27, 2024 2

@rtorrero yup. Been looking into maybe porting maxwell over to https://github.com/shyiko/mysql-binlog-connector-java for its GTID support, but it's a large-ish effort.

from maxwell.

akshayi1 avatar akshayi1 commented on June 27, 2024

Got your answer of it not being implemented in the near-future. Thanks! Closing it now.

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

I'll leave this open, in case anyone else comes to want GTID.

from maxwell.

akshayi1 avatar akshayi1 commented on June 27, 2024

Out of curiosity, I looked at open-replicator, and it looks like GTID is implemented there. Can you please clarify then why you said that it'll be quite a bit of work down in open-replicator? Am I looking at the wrong thing in open-replicator, or is it just that the boilerplate is present, but actual implementation is a lot more work? I'm just a little confused. Thanks!

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

not as far as I can tell. There's some support for parsing GTID
events from the logs, but there's no support for setting up GTID
replication positions (which are fundamentally different beasts than
file/position based replication positions)

from maxwell.

rtorrero avatar rtorrero commented on June 27, 2024

Like someone already said on #251 this, combined with consul lock would improve a lot the HA of maxwell. Another instance could be on hold, resuming exactly where the first one left as soon as it fails.

from maxwell.

smferguson avatar smferguson commented on June 27, 2024

bump. any word here? (feeling like it's stale) ... wondering if anyone runs maxwell with 5.7 in prod (without gtids)

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

Is there any way to get the xid number of the transactions ordered? like if i have two mariadb clients writing to mariadb, sometimes i got the xid in maxwell not in the right order....like:
2017-02-01 17:24:02.557 [main] INFO : {"database":"DB0","table":"T0","type":"update","ts":1485962642,"xid":2452507,"data":{"id":219499,"F0":437933182,"F1":15432081,"F2":453857335,"F3":1963974132},"old":{"F1":1601269758,"F2":1394049406}}
2017-02-01 17:24:02.560 [main] INFO: {"database":"DB0","table":"T0","type":"update","ts":1485962642,"xid":2452507,"data":{"id":244946,"F0":1226648266,"F1":530254919,"F2":1841928968,"F3":528578396},"old":{"F0":1400441802,"F1":719180255,"F2":769416959,"F3":223175808}}
2017-02-01 17:24:02.561 [main] INFO :{"database":"DB0","table":"T0","type":"update","ts":1485962642,"xid":2452507,"data":{"id":183584,"F0":779004500,"F1":1753604934,"F2":1618632991,"F3":1124771345},"old":{"F0":1398288673,"F1":1799403100,"F2":1641979330,"F3":592561791}}
2017-02-01 17:24:02.581 [main] INFO: {"database":"DB0","table":"T0","type":"update","ts":1485962642,"xid":2452507,"commit":true,"data":{"id":197743,"F0":663913596,"F1":1488959783,"F2":1712400104,"F3":10388106},"old":{"F0":2040813092,"F1":337639973,"F2":546838057,"F3":2054566224}}
2017-02-01 17:24:02.872 [main] INFO: {"database":"DB0","table":"T0","type":"delete","ts":1485962642,"xid":2452499,"data":{"id":253688,"F0":1660559508,"F1":773498766,"F2":1777714247,"F3":240264446}}
so there is a way to prevent it without gtid? using xid??

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

when you receive the message in your kafka consumer it will have an offset property that you can access.

GTIDs should be monotonic for a particular server, I think. Maybe @HenryCaiHaiying can confirm, he's working on maxwell support for them currently.

from maxwell.

HenryCaiHaiying avatar HenryCaiHaiying commented on June 27, 2024

In the normal situation, GTID should be increasing on a particular server since it's composed of server-uuid:local-tx-id. However there are two modes I haven't really tested it:

  1. When you replicate binlogs from server A to server B, you can use multi-threaded mode, so it's possible that some threads on B will fetch later binlogs from A first, but I think the binlog apply should still keep the original order;
  2. If you setup A as master and B as slave, later A crashed, the cluster failed over to B. And later A recovered, A resumes as master. I am not sure whether the new GTIDs issued from A will have a gap or not.

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

Thank you @osheroff and @HenryCaiHaiying.
@HenryCaiHaiying how can i use your maxwell version?

from maxwell.

w7089 avatar w7089 commented on June 27, 2024

It would be really helpful to have gtid support. Is there a version of maxwell in github that supports it?

from maxwell.

w7089 avatar w7089 commented on June 27, 2024

@HenryCaiHaiying Does GTID parsing feature you added support MariaDB?
We saw here the following remark:
Note that MariaDB and MySQL have different GTID implementations, and that these are not compatible with each other.

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

I try to run your project with GTID support, but somthing is not right: the "gtid_set" colunm inside table positions is always null and never change...

from maxwell.

HenryCaiHaiying avatar HenryCaiHaiying commented on June 27, 2024

That's a bit weird, did you turn on shyiko_mode and other mysql settings as I mentioned in readme file?

from maxwell.

HenryCaiHaiying avatar HenryCaiHaiying commented on June 27, 2024

For MariaDB, I don't know whether it will work or not. We are using shyiko's binlog connector, if his connector can support mariadb, we might be fine.

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

from maxwell.

HenryCaiHaiying avatar HenryCaiHaiying commented on June 27, 2024

from maxwell.

yogiGueta avatar yogiGueta commented on June 27, 2024

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

use the binlog_connector config setting instead -- SHYKO_MODE is just for tests and will go away

from maxwell.

osheroff avatar osheroff commented on June 27, 2024

Maxwell got gtid mode long ago

from maxwell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.