Giter VIP home page Giter VIP logo

Comments (4)

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

如果生产者和消费者都是一个实例的话,你可以遇到了我最近刚发现的之前对Kafka一个概念理解错误的一个潜在bug。

手动提交模式,假如消息队列里有10条消息,拉取第一条后存数据库失败,第二次拉取会拉取到第二条消息,只要你的consumer没有触发rebalance,即使你没有ACK提交,第一条消息再也拉不到了。

你这里的情况应该是在先ACK到了后面的消息,导致之前的消息取不到了。你可以对应看一下是不是我说的这种情况呢?

如果是这个问题,稍后我会想办法处理这种情况。。

发消息发布出去的问题,我需要检查确认一下

from cap.

a641545621 avatar a641545621 commented on July 21, 2024

嗯 是你说的这样子 只是有点疑问就是 消息第一次发送失败 后面重新以新的消息再发送出去 应该是按最新消息来处理把?这样接收最新消息的话应该就正常了.

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

如果是发送端新发出去,是按照新消息处理的,所以消费端一般要保证幂等性

from cap.

yang-xiaodong avatar yang-xiaodong commented on July 21, 2024

Closed!
v2.1.3 has fixed kafka consumer database store failed may caused message loss bug.

from cap.

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.