-
Notifications
You must be signed in to change notification settings - Fork 52
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 gnmi cli hang #69
Conversation
patches/0001-Fix-gnmi_cli-hang.patch
Outdated
From: zbud-msft <zainbudhwani@microsoft.com> | ||
Date: Wed, 4 Jan 2023 00:07:04 +0000 | ||
Subject: [PATCH] Fix gnmi_cli hang | ||
|
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.
Please add comment to explain your patch
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.
Fixed last patch by removing writing to channel inside cli_config. Combined fixes into existing patch
Makefile
Outdated
@@ -53,6 +53,7 @@ $(GO_DEPS): go.mod $(PATCHES) swsscommon_wrap | |||
patch -d vendor -p0 < patches/gnmi_path.patch | |||
patch -d vendor -p0 < patches/gnmi_xpath.patch | |||
git apply patches/0001-Updated-to-filter-and-write-to-file.patch | |||
git apply patches/0001-Fix-gnmi_cli-hang.patch |
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.
This should be "0002-...."
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.
Combined into one patch
#### Why I did it Submodule update for sonic-gnmi Incorporates: d922a07 Zain Budhwani Wed Jan 4 21:27:32 2023 -0800 Fix gnmi cli hang (sonic-net/sonic-gnmi#69) #### How I did it Get latest updates
Why I did it
gnmi_cli will hang when trying to write to channel inside cli_config. Use one goroutine to write to term channel and check if received cnt == expected cnt, otherwise when sleep_cnt hits max term due to timeout
How I did it
How to verify it
Nightly tests
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)