Comments (3)
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.
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.
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)
- [Bug Report]: Fail to build Integration Tests at macOS HOT 1
- Documentation - Versioning
- [Feature Request]: Add extensibility to OpenTelemetry tracing HOT 1
- Improve Worker Distribution Strategy documentation
- [Bug Report]: KafkaFlow OTEL trace is breaking after message consumption
- [Feature Request]: Analyze and adapt to OTEL Semantic Conventions version 1.23.0
- [Bug Report]: System.InvalidOperationException: There is no offsets in the received queue. Call Enqueue first HOT 1
- [Bug Report]: Distribution strategy by message/partition key issue. HOT 4
- [Bug Report]: Consumer Stuck on Exceeding Max Poll Interval
- [Bug Report]: Deserializer does not trigger next middleware in pipeline HOT 2
- [Feature Request]: Add AvroConvert schema registry serializer
- [Bug Report]: System.InvalidOperationException: Could not load the embedded file manifest 'Microsoft.Extensions.FileProviders.Embedded.Manifest.xml' for assembly 'KafkaFlow.Admin.Dashboard'.
- [Bug Report]: WebApi Sample not working as expected
- [Bug Report]: Incompatibility with Microsoft.IO.RecyclableMemoryStream 3.0.0 HOT 1
- [Feature Request]: Inheritance support in Typed Handler Middleware HOT 1
- [Feature Request]: Support JsonSerializerContext ie. JSON source generator HOT 1
- [Bug Report]:Unable to produce tombstone records HOT 7
- AddSingleTypeDeserializer tries to run for all types of messages[Bug Report]: HOT 5
- Manipulating headers HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafkaflow.