Skip to content

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.4 release train

Issue Fixed:

azure-vnet-telemetry would output json unmarshal errors due to improper socket reads

Requirements:

Notes:

@QxBytes QxBytes added cni Related to CNI. fix Fixes something. telemetry release/1.4 Change affects v1.4 release train labels Jun 25, 2024
QxBytes and others added 2 commits June 26, 2024 12:26
…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-4 branch from 8e65371 to 4e80d0c Compare June 26, 2024 19:26
@QxBytes QxBytes marked this pull request as ready for review June 26, 2024 19:33
@QxBytes QxBytes merged commit b983b5e into release/v1.4 Jun 26, 2024
@QxBytes QxBytes deleted the alew/backport-fix-unmarshal-1-4 branch June 26, 2024 21:43
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.4 Change affects v1.4 release train telemetry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants