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

fix: close connection on any return from azure-vnet-telemetry #2711

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Apr 25, 2024

Reason for Change:

Issue Fixed:

Prevents leaking of sockets when azure-vnet-telemetry errors and fails to unmarshal mentioned in #2703 (this pr does not fix the unmarshaling error itself)

Requirements:

Notes:
The unit test uses time.sleep to ensure the connection populates in the server, and we will be rewriting these tests later anyway with stateless cni.

@QxBytes QxBytes added fix Fixes something. telemetry labels Apr 25, 2024
@QxBytes QxBytes requested a review from a team as a code owner April 25, 2024 20:51
@QxBytes QxBytes requested a review from thomasricci April 25, 2024 20:51
Copy link
Member

@tamilmani1989 tamilmani1989 left a comment

Choose a reason for hiding this comment

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

is it feasible to have UT for this?

@QxBytes QxBytes force-pushed the alew/closeonerror branch from cec3263 to e8447f9 Compare April 26, 2024 22:21
tamilmani1989
tamilmani1989 previously approved these changes Apr 29, 2024
@tamilmani1989 tamilmani1989 enabled auto-merge April 29, 2024 17:33
@QxBytes
Copy link
Contributor Author

QxBytes commented Apr 29, 2024

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes
Copy link
Contributor Author

QxBytes commented Apr 29, 2024

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tamilmani1989 tamilmani1989 added this pull request to the merge queue Apr 29, 2024
Merged via the queue into master with commit 48801a1 Apr 29, 2024
12 checks passed
@tamilmani1989 tamilmani1989 deleted the alew/closeonerror branch April 29, 2024 22:33
QxBytes added a commit that referenced this pull request Apr 30, 2024
* move error handling code to defer

* invert conditional

* address linter issues

* add close connection on telemetry unmarshal error unit test

* Revert "add close connection on telemetry unmarshal error unit test"

This reverts commit e8447f9.
QxBytes added a commit that referenced this pull request May 1, 2024
…ry (#2711) (#2719)

fix: close connection on any return from azure-vnet-telemetry (#2711)

* move error handling code to defer

* invert conditional

* address linter issues

* add close connection on telemetry unmarshal error unit test

* Revert "add close connection on telemetry unmarshal error unit test"

This reverts commit e8447f9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fixes something. telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants