Skip to content

一个事务,却被拆分成多条消息(KAFKA) #3850

@tomas-tu

Description

@tomas-tu

Question

canal 版本v.1.1.5

当配置canal.mq.flatMessage = true时(json)
一个事务(比如两条更新语句),会生成两条消息(in kafka), 不正常!

当配置canal.mq.flatMessage = false时(pb)
一个事务(比如两条更新语句),只会生成一条消息(in kafka),正常!

Activity

agapple

agapple commented on Oct 9, 2021

@agapple
Member

如果开启了partition机制,是会拆分原始事务为多个分区的多条消息

tomas-tu

tomas-tu commented on Oct 11, 2021

@tomas-tu
Author

如果开启了partition机制,是会拆分原始事务为多个分区的多条消息
topic只设置了一个partition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @agapple@tomas-tu

        Issue actions

          一个事务,却被拆分成多条消息(KAFKA) · Issue #3850 · alibaba/canal