Skip to content

Kafka重复消费问题 #134

Description

@cobolbaby

如果Transformer/Merger/Loader线程执行较慢,那Kafka Offset就迟迟不能提交。

这种情况下,应该会造成重复消费到同样的数据吧。具体见如下代码:

public ChangeSet pollChangeSet() throws BiremeException {
ConsumerRecords<String, String> records = null;
try {
records = consumer.poll(POLL_TIMEOUT);
} catch (InterruptException e) {
}

Ps: 看来bireme只能依赖主键做兜底了。

Activity

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

      Issue actions