Azure / Azure/azure-functions-host

Extensions RPC lifetime mismatch between server and JobHost leads to incorrect RPC calls

Open
#10,540 11 comments 5 reactions 1 assignee Claimed by @fabiocav View on GitHub
bug pending-design
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

The current design of the extension RPC server has it piggy backing off the general worker gRPC server. The lifetime mismatch between individual workers and this server causes issues during job host transitions. We will need explore one of two options:

1. Improve lifetime tracking with the existing RPC server
- Only unregister endpoints when functions have finished draining.
- Support multiple job hosts being registered. Will need to include an identifier for what set of endpoints an extension call needs to be routed to.
2. OR move these endpoints into a new server that lives in the job host.
- Will need to measure the impact an extra server startup will have.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.