Skip to content
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

[ycabled] add some exception catching logic to some vendor specific API's #301

Merged
merged 5 commits into from
Sep 29, 2022

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Sep 28, 2022

Signed-off-by: vaibhav-dahiya [email protected]

This PR adds a try/catch block for some abstract muxcable API's. In particular the exception logic is added for all the API's where there is a possibility for exceptions to be passed by Vendor API's implementation, in this regard ycabled will have all abstract muxcable API's covered by exception logic with this PR.
If the exception is caught it will be just logged and daemon will resume its normal operation.

Description

Motivation and Context

How Has This Been Tested?

Unit-tests and deploying changes on testbed

Additional Information (Optional)

@vdahiya12 vdahiya12 requested a review from zjswhhh September 29, 2022 17:27
@zjswhhh
Copy link

zjswhhh commented Sep 29, 2022

What is this fix for? Is it for the "toggles fail while probes work" issue? Can you please provide more details?

@vdahiya12
Copy link
Contributor Author

What is this fix for? Is it for the "toggles fail while probes work" issue? Can you please provide more details?

This PR just adds some exception logic for API's that were not covered, but mostly it wont fix the
"toggles fail while probes work"

@vdahiya12 vdahiya12 merged commit 501abb2 into sonic-net:master Sep 29, 2022
@zjswhhh
Copy link

zjswhhh commented Sep 29, 2022

only in case it is not known we try to re read it gain

Hi @vdahiya12 - One more question, will this re-read writes the response to DBs?
not really only if initially the read_side was found to be -1 only then this logic will take place, where during a toggle logic it will try to find the read_side again, and see if a good value is found(1,2), but rest toggle will take place the same way

qiluo-msft pushed a commit that referenced this pull request Sep 30, 2022
…PI's (#301)

This PR adds a try/catch block for some abstract muxcable API's. In particular the exception logic is added for all the API's where there is a possibility for exceptions to be passed by Vendor API's implementation, in this regard ycabled will have all abstract muxcable API's covered by exception logic with this PR.
If the exception is caught it will be just logged and daemon will resume its normal operation.

Description
Motivation and Context
How Has This Been Tested?
Unit-tests and deploying changes on testbed

Signed-off-by: vaibhav-dahiya <[email protected]>
yxieca pushed a commit that referenced this pull request Feb 9, 2023
…PI's (#301)

This PR adds a try/catch block for some abstract muxcable API's. In particular the exception logic is added for all the API's where there is a possibility for exceptions to be passed by Vendor API's implementation, in this regard ycabled will have all abstract muxcable API's covered by exception logic with this PR.
If the exception is caught it will be just logged and daemon will resume its normal operation.

Description
Motivation and Context
How Has This Been Tested?
Unit-tests and deploying changes on testbed

Signed-off-by: vaibhav-dahiya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants