-
Notifications
You must be signed in to change notification settings - Fork 38
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
RejectedExecutionException thrown when calling setProvider after shutdown #552
Comments
@thomaspoignant I assume you are using a SDK version <= 1.4.1 ? We had a static field in event handler implementation which caused this. It was fixed with #545 I will go ahead with the 1.4.2 release - #527 which contain the fix |
Caused by the static event handler usage which was fixed with #545 Please update SDK version to https://github.com/open-feature/java-sdk/releases/tag/v1.4.2 |
Yes I was using 1.4.1. |
@Kavindu-Dodan I have the exact same problem with the version |
@thomaspoignant root cause is the singleton OF API 1. Once the shutdown is called, eventing mechanism is no longer available. I will revisit shutdown spec section and fix this Footnotes |
@thomaspoignant Fix is ready and contains your bug recreation code as a test - #556 :) |
@thomaspoignant please update to the newest release v1.4.3 1 which contains the fix for this bug Footnotes |
While writing a unit test I found a bug when calling
OpenFeatureAPI.getInstance().shutdown();
and calling backsetProvider()
we have an exception thrown (java.util.concurrent.RejectedExecutionException
).I don't know if this is expected, but this exception is not super explicit anyway.
How to reproduce
The second
setProvider
is throwing this exception:The text was updated successfully, but these errors were encountered: