[ycabled] fix exception-handling logic for ycabled#312
Merged
vdahiya12 merged 8 commits intosonic-net:202012from Nov 11, 2022
Merged
[ycabled] fix exception-handling logic for ycabled#312vdahiya12 merged 8 commits intosonic-net:202012from
vdahiya12 merged 8 commits intosonic-net:202012from
Conversation
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging bf9881f into aacb772 - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging ebd7d4f into 3d5470d - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging b1b40eb into 3d5470d - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging 35a8345 into 3d5470d - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging 8480ff3 into 3d5470d - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
|
This pull request introduces 4 alerts when merging 57626c8 into 3d5470d - view on LGTM.com new alerts:
|
prgeor
approved these changes
Nov 11, 2022
lotus-nexthop
pushed a commit
to lotus-nexthop/sonic-platform-daemons
that referenced
this pull request
Oct 28, 2025
* read CMIS data path state duration * 1. Add code coverage 2. reorder entries in regGroupField
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.
Cherry-pick conflict
#306
Signed-off-by: vaibhav-dahiya [email protected]
This PR is changing how exception handling is handled in python threading.
In python3.7 if child thread gets an exception, there is no way of knowing an exception occured, unless a join is called. The problem is resolved in this PR
Also task classes are structured this way
This allows helping catching the exception thrown by a child thread get caught along with traceback.
Main thread has a while loop, which monitors each thread, if not running will kill the whole process and supervisord will bring back the ycabled up.
Description
Motivation and Context
How Has This Been Tested?
Unit-tests and deploying changes on testbed
Additional Information (Optional)
sonic-mgmt tests which pass with this change
No exceptions observed, ycabled seems healthy with true thread count