Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected message.release() in PulsarMessageAck.java #2580

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

michalcukierman
Copy link
Contributor

@@ -41,7 +41,6 @@ public Uni<Void> handle(PulsarIncomingMessage<?> message) {
return Uni.createFrom().completionStage(() -> {
var txnMetadata = message.getMetadata(PulsarTransactionMetadata.class);
if (txnMetadata.isPresent()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already released in line #40

@ozangunalp
Copy link
Collaborator

ozangunalp commented Apr 12, 2024

What's more, we should probably release the messages on FailureHandlers which are not performing ACK.

Ok for releasing the message on all failure handlers.

But I think we should keep the message pooling to the Pulsar consumer default. I didn't hesitate to add release calls because when the message is not pooled it is a no-op.

@ozangunalp ozangunalp merged commit b38a33b into smallrye:main Apr 15, 2024
4 checks passed
@ozangunalp ozangunalp added this to the 4.21.0 milestone Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants