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

Function use negative acknowledge #4103

Merged
merged 6 commits into from
Apr 25, 2019
Merged

Conversation

jerrypeng
Copy link
Contributor

@jerrypeng jerrypeng commented Apr 22, 2019

Motivation

Since negative acknowledgements were added to Pulsar, Pulsar functions should take advantage of this functionality. When a error, e.g. user exception, happens we should send a negative ack so that the message can be redelivered and reprocessed.

Currently, users will have set the ackTimeout config for messages to be redelivered when an error happens. This is cumbersome for users and hard to get right when process times vary

Also fixed a bug involving setting user and system exceptions, that was caught when writing integration tests for this

@jerrypeng jerrypeng added this to the 2.4.0 milestone Apr 22, 2019
@jerrypeng jerrypeng self-assigned this Apr 22, 2019
@jerrypeng jerrypeng changed the title Function neg ack Function use negative acknowledge Apr 22, 2019
@jerrypeng
Copy link
Contributor Author

will add tests for this

@jerrypeng
Copy link
Contributor Author

tests added

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Apr 23, 2019
@merlimat
Copy link
Contributor

run cpp tests

@jerrypeng
Copy link
Contributor Author

rerun java8 tests
rerun integration tests
rerun cpp tests

@jerrypeng jerrypeng merged commit 4e84d5b into apache:master Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/function type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants