Skip to content
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

PDE-3038 fix(core): dangling logger causes Lambda to hang #490

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

eliangcs
Copy link
Member

@eliangcs eliangcs commented Feb 22, 2022

Fixes https://github.com/zapier/zapier/issues/53430.

The bug was introduced by #483. Affected core versions are 11.3.0 and 9.7.0. The root cause is the httpPatch() function was reusing the logger instance from the previous Lambda invocation. But since we destroy the logger at the end of a Lambda call, the logger wouldn't be valid for the subsequent call. This causes the subsequent call to wait for the invalid logger to respond and time out.

The symptoms of this bug:

  • Long Lambda execution time, usually > 60 seconds
  • Actions being invoked multiple times, because Zapier retries when it doesn't get a response from Lambda

xavdid
xavdid previously approved these changes Feb 22, 2022
Copy link
Contributor

@xavdid xavdid left a comment

Choose a reason for hiding this comment

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

great catch!!

@eliangcs eliangcs merged commit cda54cd into master Feb 23, 2022
@eliangcs eliangcs deleted the PDE-3038-hanging-issue branch February 23, 2022 03:16
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.

None yet

2 participants