Skip to content

Ignore function load requests with duplicate FunctionId values #278

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

Merged

Conversation

AnatoliB
Copy link
Contributor

This mitigates issue #276.

The PowerShell worker seems to be relying on a guarantee that has never been explicitly provided by the Azure Functions host. Recently, the PowerShell worker started receiving more than one function load request with the same FunctionId. Apparently, this is caused by a change on the Azure Functions host side, and the root cause and the overall effect of this change are still to be investigated. In the meantime, we want to let the PowerShell worker tolerate this situation, which will make the load request operation idempotent.

Copy link
Contributor

@Francisco-Gamino Francisco-Gamino left a comment

Choose a reason for hiding this comment

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

LGTM

@AnatoliB AnatoliB merged commit 78f4734 into Azure:dev Jul 15, 2019
AnatoliB added a commit to AnatoliB/azure-functions-powershell-worker that referenced this pull request Jul 15, 2019
…#278)

* Add FunctionLoader IsLoaded method

* Return from ProcessFunctionLoadRequest early if already loaded
AnatoliB added a commit to AnatoliB/azure-functions-powershell-worker that referenced this pull request Jul 15, 2019
…#278)

* Add FunctionLoader IsLoaded method

* Return from ProcessFunctionLoadRequest early if already loaded
AnatoliB added a commit that referenced this pull request Jul 16, 2019
…#279)

* Add FunctionLoader IsLoaded method

* Return from ProcessFunctionLoadRequest early if already loaded
@AnatoliB AnatoliB deleted the fix-duplicate-function-load-requests-issue branch July 31, 2019 21:05
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