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

Fixing MessageProcessor AutoComplete handling #1814

Merged
merged 1 commit into from
Jul 26, 2018
Merged

Conversation

mathewc
Copy link
Member

@mathewc mathewc commented Jul 24, 2018

Related to Functions issue Azure/azure-functions-host#2066 where users need the ability to control completion behavior for successful function invocations. In part of the discussion of that issue, it was pointed out that even when OnMessageOptions.AutoComplete is set to false, we still call complete! This logic was added a long time ago (in this commit) and I don't think it is correct. When you set AutoComplete to false, you're saying that in the absence of an exception, you want to control the message state yourself (e.g. call Complete/DeadLetter/etc.).

The default for AutoComplete is true, so this change will only affect people who have changed the default. Technically it is a breaking change, but given that this won't affect default users, and the behavior when set to false doesn't make any sense, I'm comfortable making the change in a minor version release as a bug fix. Note that for Azure Functions users, since we don't currently allow you to configure AutoComplete, it isn't breaking there.

Will make the same change in dev.

@mathewc mathewc merged commit 447a67b into v2.x Jul 26, 2018
@mathewc mathewc deleted the autocomplete-fix branch May 6, 2022 19:15
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