Azure / Azure/azure-functions-host

[Rpc] Buffer invocations if host detects file system changes that would initiate langauge worker process restart rapidly

Open
#7,463 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

Related to https://github.com/Azure/azure-functions-host/issues/7462

Follow up from a CRI investigation - Long Term fix

1. Customer updated files from portal
2. JobHost restart kicked off due to file changes
3. Java language worker process was restarted multiple times - each jobhost restart will initiate language worker process restart

Invocations that started before language worker process fully initialized failed with `Did not find any initialized language workers` error.

This is a race condition where invocations are dispatched even though langauge worker process is not initialized.

cc @AnatoliB @alrod @ConnorMcMahon

Contributor guide

Open the contributing guide

Research direction

Start with the related issue #7462 and the CRI investigation described here, then trace how host file changes restart the language worker and how invocations are dispatched during initialization. Done means invocations are buffered during rapid restarts and no longer fail with "Did not find any initialized language workers."

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.