Skip to content

Conversation

@Hazhzeng
Copy link
Contributor

@Hazhzeng Hazhzeng commented Jun 24, 2020

Description

Fixes Issue https://github.com/Azure/azure-functions-python-worker/pull/632/files#diff-9a16b2f8bcbe955d554031aec6e96442R47

The self._grpc_max_msg_len is set to None due to passing None into dispatcher.__init__() method


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and CI is passing.

Quality of Code and Contribution Guidelines

@Hazhzeng Hazhzeng force-pushed the hazeng/fix-message-limit branch from 69bb9dc to 2a5075b Compare June 24, 2020 23:39
Copy link
Member

@vrdmr vrdmr left a comment

Choose a reason for hiding this comment

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

LGTM

loop = asyncio._get_running_loop()
disp = cls(loop, host, port, worker_id, request_id,
connect_timeout, max_msg_len)
connect_timeout)
Copy link
Member

Choose a reason for hiding this comment

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

As you are changing the "max_msg_len", in a subsequent PR, let's start adding type suggestions for the parameters. I'll add a new issue for it.

def __init__(self, loop, host, port, worker_id, request_id,
             grpc_connect_timeout, grpc_max_msg_len: int = -1):

Copy link

@TroyWitthoeft TroyWitthoeft Jul 3, 2020

Choose a reason for hiding this comment

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

Felt this bug in prod. Was tough to troubleshoot. How can we tell if our azure app has the latest hotfix bits?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @TroyWitthoeft, we finished rollout the hotfix last week. You can check if your function host version is upgraded to 2.0.13998 or 3.0.13978. These two versions should have this HotFix.

Copy link

@TroyWitthoeft TroyWitthoeft Jul 8, 2020

Choose a reason for hiding this comment

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

Got it. We're all set now. We were able to Kudu/SSH into the box and examine the dispatcher.py to confirm if we had the latest bits. A delete and redeploy got us the latest bits. But, I am curious. We dug around in the portal and couldn't find the functions host version listed anywhere. Any tips? Is it on a particular part of the blade? Available over REST? Printed to logs on startup, etc? Appreciate it. And thanks for the fix! Got us out of bind.

@Hazhzeng Hazhzeng merged commit 98fcfa9 into dev Jun 24, 2020
@Hazhzeng Hazhzeng deleted the hazeng/fix-message-limit branch June 25, 2020 00:03
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.

4 participants