dapr-sandbox / components-java-sdk

Dapr SDK to compose pluggable components in Java.
Apache License 2.0
2 stars 2 forks source link

Replace logFatalAndAbort in PluggableComponentServer with exceptions #21

Open tmacam opened 1 year ago

tmacam commented 1 year ago

Describe the feature

On #22 the method logFatalAndAbort was added to PluggableComponentServer.

It does exactly what the name says. Its usage are done in places where aborting the application makes sense. However, this makes it harder for write tests to check those functionalities. So in the future we might want to revert that to logging+throwing exception. Arguably worse UX but better for testability.

Release Note

RELEASE NOTE: FIX Replace usage of logFatalAndAbort with exceptions, for increased testability.