Skip to content

Events client: Ensure all go routines exit upon client disconnect.#41

Merged
renukamanavalan merged 2 commits intosonic-net:masterfrom
renukamanavalan:statistics
Sep 8, 2022
Merged

Events client: Ensure all go routines exit upon client disconnect.#41
renukamanavalan merged 2 commits intosonic-net:masterfrom
renukamanavalan:statistics

Conversation

@renukamanavalan
Copy link
Contributor

@renukamanavalan renukamanavalan commented Sep 8, 2022

Why I did it

The go routines don't get a formal exit, that breaks proper client disconnect from eventd.

How I did it

Add the go routines into waitgroup and invoke done upon proper exit.

How to verify it

Via logs is the easy way.
Start a gnmi client and stop. Note in telemetry log the spew from go routines for proper exit.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@renukamanavalan renukamanavalan self-assigned this Sep 8, 2022
@renukamanavalan renukamanavalan merged commit 14f9121 into sonic-net:master Sep 8, 2022
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.

2 participants