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

Fix group not found issue. #5013

Merged
merged 3 commits into from
May 27, 2024
Merged

Fix group not found issue. #5013

merged 3 commits into from
May 27, 2024

Conversation

KiterLuc
Copy link
Contributor

@KiterLuc KiterLuc commented May 27, 2024

After merging #5002 and #4999, dump for non existing group recursive group stopped working. This is because the error logic in 5002 expected a status code whilst 4999 changes to throw an exception. The fix changes the group code to throw a known exception which is caught at the upper level as a group not found exception. This is much cleaner that using a failed status code, which could mean many other issues.

Also, taking advantage to unstatus group.cc/h.

[sc-48205]


TYPE: NO_HISTORY
DESC: Fix group not found issue.

After merging #5002 and #4999, dump for non existing group recursive group stopped working. This is because the error logic in 5002 expected a status code whilst 4999 changes to throw an exception. The fix changes the group code to throw a known exception which is caught at the upper level as a group not found exception. This is much cleaner that using a failed status code, which could mean many other issues.

---
TYPE: NO_HISTORY
DESC: Fix group not found issue.
@KiterLuc KiterLuc requested review from ypatia and teo-tsirpanis May 27, 2024 18:42
@@ -701,14 +690,12 @@ std::string Group::dump(
}

Group group_rec(resources_, member_uri, storage_manager_);
auto st = group_rec.open(QueryType::READ);
if (st.ok()) {
try {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix.

@KiterLuc KiterLuc merged commit 907e5d3 into dev May 27, 2024
60 checks passed
@KiterLuc KiterLuc deleted the lr/fix-group-not-found/ch48205 branch May 27, 2024 22:53
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.

2 participants