Code Monkey home page Code Monkey logo

Comments (3)

massada avatar massada commented on June 12, 2024 1

Hi @joelfoliveira,
Yes, I am. I’ve been talking with @filipeesch and we’ve found out a corner case where the message is processed faster than it is inserted in the offset manager, making it throw an exception when trying to complete it, and thus never completing it (nor storing the offsets).
We have a fix but are still deciding the best approach to implement it.

from kafkaflow.

joelfoliveira avatar joelfoliveira commented on June 12, 2024

This behavior is expected, because KafkaFlow will try to complete the message processing before stopping in order to prevent duplication of message processing and to commit the offset accordingly (graceful shutdown).

In cases, where the message requires a long-running task to process you can use the WorkerStopped CancellationToken available through the IMessageContext (messageContext.ConsumerContext.WorkerStopped) to listen for the cancellation and to interrupt the message processing. By default, this token is canceled 30 seconds after the worker has been issued to stop processing.
The time it takes for the cancellation can be changed using the Consumer Configuration method .WithWorkerStopTimeout(...)

from kafkaflow.

joelfoliveira avatar joelfoliveira commented on June 12, 2024

Hi @massada ,

If you're still experiencing this issue or have any additional information to share, please feel free to let us know.

However, if we don't receive any updates or feedback from you within the next 5 business days, we may need to consider closing this issue. Please understand that this is not a final decision, and you can always reopen the issue or create a new one in the future.

We appreciate your contribution to our project and look forward to hearing from you soon. If you have any questions or need further assistance, don't hesitate to reach out.

from kafkaflow.

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.