-
Notifications
You must be signed in to change notification settings - Fork 451
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
Adding a timeout to IFunctionProvider.GetFunctionMetadataAsync
#10249
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…t if a provider does not return, it will not cause a deadlock state.
kshyju
commented
Jun 25, 2024
kshyju
changed the title
Shkr/gh 10219 deadlock
Adding a timeout to Jun 25, 2024
IFunctionProvider.GetFunctionMetadataAsync
…h can be set to a different value than default, from the tests.
jviau
approved these changes
Jun 27, 2024
fabiocav
reviewed
Jun 28, 2024
…r method throws or when the operation timeseout.
kshyju
commented
Jul 2, 2024
fabiocav
approved these changes
Jul 3, 2024
kshyju
added a commit
that referenced
this pull request
Jul 8, 2024
) * Adding a timeout to IFunctionProvider.GetFunctionMetadataAsync so that if a provider does not return, it will not cause a deadlock state. * Adding release notes. * Added a new internal property `MetadataProviderTimeoutInSeconds` which can be set to a different value than default, from the tests. * Added comment about property being settable. * PR feedback fixes. Throws an error when the function metadata provider method throws or when the operation timeseout.
kshyju
added a commit
that referenced
this pull request
Jul 11, 2024
) (#10273) * Adding a timeout to IFunctionProvider.GetFunctionMetadataAsync so that if a provider does not return, it will not cause a deadlock state. * Adding release notes. * Added a new internal property `MetadataProviderTimeoutInSeconds` which can be set to a different value than default, from the tests. * Added comment about property being settable. * PR feedback fixes. Throws an error when the function metadata provider method throws or when the operation timeseout.
v-imohammad
pushed a commit
that referenced
this pull request
Jul 15, 2024
) (#10273) * Adding a timeout to IFunctionProvider.GetFunctionMetadataAsync so that if a provider does not return, it will not cause a deadlock state. * Adding release notes. * Added a new internal property `MetadataProviderTimeoutInSeconds` which can be set to a different value than default, from the tests. * Added comment about property being settable. * PR feedback fixes. Throws an error when the function metadata provider method throws or when the operation timeseout.
v-imohammad
added a commit
that referenced
this pull request
Jul 16, 2024
* JIT Trace - 4.35.0 using in-proc as base (#10281) * Adding a timeout to `IFunctionProvider.GetFunctionMetadataAsync` (#10249) (#10273) * Adding a timeout to IFunctionProvider.GetFunctionMetadataAsync so that if a provider does not return, it will not cause a deadlock state. * Adding release notes. * Added a new internal property `MetadataProviderTimeoutInSeconds` which can be set to a different value than default, from the tests. * Added comment about property being settable. * PR feedback fixes. Throws an error when the function metadata provider method throws or when the operation timeseout. * [in-proc port] Ensure extension RPC endpoints ready before processing gRPC messages (#10282) * Ensure extension RPC endpoints ready before processing gRPC messages (#10255) * Ensure extension RPC endpoints ready before processing gRPC messages * Add timeout and tests to waiting on RPC extensions. * update release_notes.md * [in-proc] Update Microsoft.Azure.WebJobs to 3.0.41 and Microsoft.Azure.WebJobs.Host.Storage to 5.0.1 (#10288) * Upgraded the following package versions: - Microsoft.Azure.WebJobs updated to 3.0.41 - Microsoft.Azure.WebJobs.Host.Storage updated to 5.0.1 - Microsoft.Extensions.Azure updated to 1.7.1 - Azure.Storage.Blobs updated to 12.19.1 * Updating deps.json for Tests. --------- Co-authored-by: Shyju Krishnankutty <connectshyju@gmail.com> Co-authored-by: Jacob Viau <javia@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #10219
The fix is to wrap the
GetFunctionMetadataAsync
with a timeout task so that if theGetFunctionMetadataAsync
does not return within a specific time, we throw a timeout exception which the caller will handle.IMPORTANT: Currently, changes must be backported to the
in-proc
branch to be included in Core Tools and non-Flex deployments.in-proc
branch is not requiredIFunctionProvider.GetFunctionMetadataAsync
#10273release_notes.md
IFunctionProvider.GetFunctionMetadataAsync
#10273