Coder Social home page Coder Social logo

Comments (10)

czxin788 avatar czxin788 commented on August 17, 2024 1

@whhe
太感谢了,用你的代码可以了。
这次是我的问题,我在配置数据表时配错了,原来配置表时只需要写表名就行了,我给写成库名,表名了。
现在成功跳过xa事务,任务跑起来了。
最后再次感谢你的帮助,周末愉快。
image

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

我用master编译成4.2.19版本后,还是不支持xa事务。

from otter.

whhe avatar whhe commented on August 17, 2024

目前是不支持XA的,你看看 #1129 能不能跳过

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

目前是不支持XA的,你看看 #1129 能不能跳过

好的,我重新编译试一下

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

确实不报错了,但是好像是正常有数据的event也都跳过了
image

最终导致没有一条新增数据写入
image

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

我这么写也不对,反而编译不过去了:

 EventType eventType = EventType.valueOf(rowChange.getEventType().name());

        if (eventType ==  "XACOMMIT" ) {
            logger.warn("Discard unsupported event type: {}", rowChange.getEventType());
            return null;
        }

from otter.

whhe avatar whhe commented on August 17, 2024

确实不报错了,但是好像是正常有数据的event也都跳过了 image

最终导致没有一条新增数据写入 image

我的错,这里要判断名字。我更新了下,再试试

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

感谢回复,我用了你第二次的代码编译后,还是把所有的event全部跳过了,最终导致一条数据都没有同步过来。
我确认我的binlog position设置是对的,并且position后面有新增数据,因为我可用my2sql工具能解析出具体新增sql。

我用的这个代码编译的:https://github.com/whhe/otter/tree/discard-unsupported-event

from otter.

whhe avatar whhe commented on August 17, 2024

感谢回复,我用了你第二次的代码编译后,还是把所有的event全部跳过了,最终导致一条数据都没有同步过来。 我确认我的binlog position设置是对的,并且position后面有新增数据,因为我可用my2sql工具能解析出具体新增sql。

我用的这个代码编译的:https://github.com/whhe/otter/tree/discard-unsupported-event

跳过的时候有打印日志吗?Discard unsupported event type 这个

理论上新加的这个过滤只会丢弃 GTID, XACOMMIT, XAROLLBACK, MHEARTBEAT这四种

from otter.

czxin788 avatar czxin788 commented on August 17, 2024

有日志,我应该怎么排错

2024-05-25 12:14:17.810 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:17.816 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:17.816 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:36.160 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:36.160 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:36.160 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:55.164 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:55.164 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:14:55.165 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:15:00.899 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:15:00.899 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT
2024-05-25 12:15:00.899 [pipelineId = 6,taskName = ProcessSelect] WARN  com.alibaba.otter.node.etl.select.selector.MessageParser - Discard unsupported event type: XACOMMIT

from otter.

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.