This repository was archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
CORTX-33057: Error handing for asserts. #2097
Merged
Merged
Conversation
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
motr/setup.c: M0_ASSERT(rctx->rc_mdstore.md_dom != NULL); This Assert was changed to check for NULL md_dom and return -ENOENT if check failed instead of raising a panic. Signed-off-by: Abhishek Saha <[email protected]>
Contributor
Author
|
tested with these changes on m0d-ut:cs-single-service UT When FI is enabled, the motr startup returns with error in an expected manner. |
yatin-mahajan
approved these changes
Aug 26, 2022
Contributor
yatin-mahajan
left a comment
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.
Looks good to me.
Contributor
|
have triggered CI-CD for this PR https://eos-jenkins.colo.seagate.com/job/Cortx-PR-Build/job/Motr/1646/ |
yeshpal-jain-seagate
approved these changes
Aug 26, 2022
Contributor
kiwionly2
pushed a commit
to kiwionly2/cortx-motr
that referenced
this pull request
Aug 30, 2022
motr/setup.c: M0_ASSERT(rctx->rc_mdstore.md_dom != NULL); This Assert was changed to check for NULL md_dom and return -ENOENT if check failed instead of raising a panic. Signed-off-by: Abhishek Saha <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
motr/setup.c: M0_ASSERT(rctx->rc_mdstore.md_dom != NULL);
This Assert was changed to check for NULL md_dom and return -ENOENT
if check failed instead of raising a panic.
Signed-off-by: Abhishek Saha [email protected]
Problem Statement
Design
Coding
Checklist for Author
Testing
Checklist for Author
Impact Analysis
Checklist for Author/Reviewer/GateKeeper
Review Checklist
Checklist for Author
Documentation
Checklist for Author