-
Notifications
You must be signed in to change notification settings - Fork 906
GODRIVER-2577 Retry heartbeat on timeout to prevent pool cleanup in FAAS pause. #1133
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
Conversation
2ab94d1
to
c2e0b77
Compare
c2e0b77
to
28c8df9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work so far! 🧑🔧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good! Still have some open questions (my unresolved threads).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! 🧑🔧
117560f
to
29a14d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
* GODRIVER-2651 Break NoWritesPerformed-Only Error Sequence (#1135) Co-authored-by: Qingyang Hu <[email protected]> Co-authored-by: Benjamin Rewis <[email protected]> Co-authored-by: Kevin Albertson <[email protected]> Co-authored-by: Qingyang Hu <[email protected]> Co-authored-by: Benjamin Rewis <[email protected]> * GODRIVER-2333 Assert that Ping op succeeds initial DNS spec tests (#1124) * GODRIVER-2577 Retry heartbeat on timeout to prevent pool cleanup in FAAS pause. (#1133) * resolve merge conflicts Co-authored-by: Qingyang Hu <[email protected]> Co-authored-by: Benjamin Rewis <[email protected]> Co-authored-by: Kevin Albertson <[email protected]>
GODRIVER-2577
Summary
This fix retries heartbeat on timeout errors to delay pool cleanup by one event loop.
Background & Motivation
Pausing behavior in FAAS environment, e.g. AWS Lambda, causes connection timeout in heartbeat, which then clears the pool.
This fix retries heartbeats on timeout so only two continuous timeout errors will trigger a pool cleanup.
Its test case uses a proxy
net.Conn
to mimic timeout errors.