Skip to content

Rust::com COM-API Error reporting optimization#230

Open
bharatGoswami8 wants to merge 7 commits intoeclipse-score:mainfrom
bharatGoswami8:COM-API_Error_Optimization
Open

Rust::com COM-API Error reporting optimization#230
bharatGoswami8 wants to merge 7 commits intoeclipse-score:mainfrom
bharatGoswami8:COM-API_Error_Optimization

Conversation

@bharatGoswami8
Copy link
Contributor

  • Error enum variant based on the use cases
  • Optimized the error handling on runtime impl

#165

@bharatGoswami8 bharatGoswami8 force-pushed the COM-API_Error_Optimization branch from 2ce2401 to 0a512bf Compare March 24, 2026 07:56
@bharatGoswami8 bharatGoswami8 self-assigned this Mar 24, 2026
@bharatGoswami8 bharatGoswami8 force-pushed the COM-API_Error_Optimization branch 3 times, most recently from 805507c to 3c65550 Compare March 25, 2026 12:47
Comment on lines +854 to +857
panic!(
"InstanceSpecifier::ANY is not supported in LolaRuntimeImpl,
Please use FindServiceSpecifier::Specific with a valid instance specifier."
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't really get that point. C++ side supports ANY semantics. But consumers are always just for one specific instance. The resolution from ANY to specific instances happens in the SD.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So this is supporting API for a API which enable user to get all the available services and user can iterate with each service and identify required service using InstanceSpecifier.
But as Primary API is not enabled in this case due to LoLa does not support find service call with ANY, it require specific InstanceSpecifier because of that this msg displayed to user.

Comment on lines +42 to +45
FindServiceSpecifier::Any => panic!(
"FindServiceSpecifier::Any is not supported in LolaRuntimeImpl,
Please use FindServiceSpecifier::Specific with a valid instance specifier."
),
Copy link
Contributor

Choose a reason for hiding this comment

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

A ticket for this would be good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sure i can create ticket to keep track if LoLa adds the ANY support for find service call then we will add in rust library also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

* Error id based on the use cases
* Optimized the error handling on runtime impl
* Example app handle the error
* Updated Error enums and removed string from variant
* Created ErrorDisplay macro for display and debug trait impl for enum
* Optimized error module
* Added thiserror crate for display of Error msg
* Overrite the commit id for score_crate
* Updated Example app
* Producer Builder error returning update
@bharatGoswami8 bharatGoswami8 force-pushed the COM-API_Error_Optimization branch from 5fade72 to c578d66 Compare March 27, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants