Comments (5)
Beware that batched messages may not be acked if all the messages from the batch are not acked before closing the consumer (the consumer is closed when consumeOne/consumeMany completes).
from pulsar-client-reactive.
Beware that batched messages may not be acked if all the messages from the batch are not acked before closing the consumer (the consumer is closed when consumeOne/consumeMany completes).
This is most likely caused by the lack of configuring .batchIndexAckEnabled(true)
on the ReactiveMessageConsumerBuilder and enabling acknowledgmentAtBatchIndexLevelEnabled=true
in broker.conf (PULSAR_PREFIX_acknowledgmentAtBatchIndexLevelEnabled=true
env variable for docker container, #13 contains changes for Pulsar Testcontainer). If it doesn't fix the issue, we'd have to investigate further.
from pulsar-client-reactive.
The purpose of MessageResult is to have a functional and data (value) oriented way to do acknowledgments without side-effects. In functional programming, everything is a value. By googling, I found a related presentation "Railway Oriented Programming: Functional error handling". It's in different context, but that presentation explains the type of design. Wikipedia's "Result type" contains a short explanation.
from pulsar-client-reactive.
This is most likely caused by the lack of configuring .batchIndexAckEnabled(true) on the ReactiveMessageConsumerBuilder and enabling acknowledgmentAtBatchIndexLevelEnabled=true in broker.conf
I think that if the consumer gets closed the batch will be fully redelivered to another consumer. So it's not really enough for the consumeOne case.
from pulsar-client-reactive.
This is most likely caused by the lack of configuring .batchIndexAckEnabled(true) on the ReactiveMessageConsumerBuilder and enabling acknowledgmentAtBatchIndexLevelEnabled=true in broker.conf
I think that if the consumer gets closed the batch will be fully redelivered to another consumer. So it's not really enough for the consumeOne case.
.batchIndexAckEnabled(true)
and acknowledgmentAtBatchIndexLevelEnabled=true
should handle that. I guess the gap is with the asynchronous acknowledgement mode which might not wait for all pending acknowledgements to "drain" when closing.
from pulsar-client-reactive.
Related Issues (20)
- Add support for Mutiny HOT 6
- Update to Pulsar client 3.0.1
- Prefix of the shaded relocation should not point to `org.springframework`
- Update to Project Reactor 3.6.0
- Update to Pulsar 3.1.0
- Update Reactor version to 3.6.1
- Update to Pulsar 3.1.2
- Update to Pulsar 3.2.0
- Update Reactor to 3.6.3
- Remove javadoc author tags
- Investigate why concurrency seems to go over limits in ReactiveMessagePipelineTest.concurrency()
- ReactiveMessagePipelineTest.handlingTimeout is flaky
- Add tests for acknowledgeAsynchronously and acknowledgeScheduler
- Fix issue where InflightLimiter is added to producer cache entry but it is not part of the key
- Add tests with BlockHound
- Don't allow instantiating a ReactiveMessageSender with maxInflight set to > 0 when cache is not set
- ReactiveMessagePipelineTest.handlingTimeout is flaky
- ReactiveMessagePipelineTest.maxInflight is flaky HOT 1
- InflightLimiterTest:: shouldSpreadRequestsEvenlyAcrossUpstream is flaky
- InflightLimiterTest.shouldSpreadRequestsEvenlyAcrossUpstream is flaky HOT 1
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 pulsar-client-reactive.