[sflow] Exception handling for if_nametoindex (#11437)#13567
Merged
lguohan merged 1 commit intosonic-net:masterfrom Mar 27, 2023
Merged
Conversation
|
|
venkatmahalingam
approved these changes
Feb 2, 2023
Contributor
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
6bce8c1 to
51381f6
Compare
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
1 similar comment
|
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
Contributor
Author
|
/azp run Azure.sonic-buildimage |
|
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
Contributor
@Gokulnath-Raja , you can try "/azpw run Azure.sonic-buildimage" |
Contributor
Author
|
/azpw run Azure.sonic-buildimage |
Collaborator
|
/AzurePipelines run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
51381f6 to
9c43b40
Compare
catch system error and log as warning level instead of
error level in case interface was already deleted
Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com>
9c43b40 to
fe46c10
Compare
Contributor
Author
|
/AzurePipelines run EasyCLA |
|
Commenter does not have sufficient privileges for PR 13567 in repo sonic-net/sonic-buildimage |
Contributor
|
@Gokulnath-Raja , please sign CLA |
Collaborator
|
@lguohan Can you please review this PR? |
Collaborator
|
do we need to pick this to 202205, 202211 older branch? |
Contributor
Author
lixiaoyuner
pushed a commit
to lixiaoyuner/sonic-buildimage
that referenced
this pull request
Feb 6, 2024
https://msazure.visualstudio.com/One/_workitems/edit/17813211 Related work items: sonic-net#9216, sonic-net#11437, sonic-net#13507, sonic-net#13512, sonic-net#13567, sonic-net#13972, sonic-net#14351, sonic-net#14371, sonic-net#14375, sonic-net#14401, sonic-net#14407, sonic-net#14408, sonic-net#14427, sonic-net#14428, sonic-net#14439
lixiaoyuner
pushed a commit
to lixiaoyuner/sonic-buildimage
that referenced
this pull request
Feb 6, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
catch system error and log as warning level instead of
error level in case interface was already deleted.
Why I did it
sflow process exited when failed to convert the interface index from interface name
How I did it
Added exception handling code and logged when OSError exception.
How to verify it
Recreated the bug scenario #11437 and ensured that sflow process not exited.
Description for the changelog
catch system error and log as warning level instead of
error level in case interface was already deleted.
Logs
steps :
syslogs :