Skip to content

backport: fix: move bufio reader creation out of for loop to fix telemetry unmarshal errors (#2789) #2813

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

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Jun 25, 2024

  • move bufio reader creation out of for loop

if the bufio reader is created in the for loop we get unmarshaling errors

  • fix linter issue

  • add fixed ut

  • fix existing unit test flake due to closing pipe on error

a previous fix ensured the socket closed on error, but this caused an existing ut to nondeterministically fail without the previous fix, the socket wouldn't have been closed on error

  • make read inline

Reason for Change:

Backport telemetry fix to 1.5

Issue Fixed:

Previously azure-vnet-telemetry would output unmarshal errors due to improper handling of socket reads

Requirements:

Notes:

@QxBytes QxBytes added cni Related to CNI. fix Fixes something. release/1.5 Change affects v1.5 release train telemetry labels Jun 25, 2024
@QxBytes QxBytes marked this pull request as ready for review June 25, 2024 19:03
@QxBytes QxBytes requested a review from a team as a code owner June 25, 2024 19:03
@QxBytes QxBytes requested a review from debecerra June 25, 2024 19:03
…rshal errors (#2789)

* move bufio reader creation out of for loop

if the bufio reader is created in the for loop we get unmarshaling errors

* fix linter issue

* add fixed ut

* fix existing unit test flake due to closing pipe on error

a previous fix ensured the socket closed on error, but this caused an existing ut to nondeterministically fail
without the previous fix, the socket wouldn't have been closed on error

* make read inline
@QxBytes QxBytes force-pushed the alew/backport-fix-unmarshal-1-5 branch from dc7ac52 to 35f1dc8 Compare June 25, 2024 19:12
@QxBytes QxBytes merged commit ebda382 into release/v1.5 Jun 25, 2024
84 of 91 checks passed
@QxBytes QxBytes deleted the alew/backport-fix-unmarshal-1-5 branch June 25, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cni Related to CNI. fix Fixes something. release/1.5 Change affects v1.5 release train telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants