Skip to content

fix: ability to set provider after shutdown #556

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

Merged
merged 3 commits into from
Aug 11, 2023

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Aug 11, 2023

This PR

Fix #552

Since API is a singleton, we must re-initialize all cleaned-up resources.

Signed-off-by: Kavindu Dodanduwa <[email protected]>
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #556 (684dfee) into main (a6eabc3) will decrease coverage by 0.25%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##               main     #556      +/-   ##
============================================
- Coverage     95.36%   95.11%   -0.25%     
+ Complexity      330      329       -1     
============================================
  Files            31       31              
  Lines           755      758       +3     
  Branches         37       37              
============================================
+ Hits            720      721       +1     
- Misses           18       20       +2     
  Partials         17       17              
Flag Coverage Δ
unittests 95.11% <81.81%> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...rc/main/java/dev/openfeature/sdk/EventSupport.java 96.66% <50.00%> (-3.34%) ⬇️
.../main/java/dev/openfeature/sdk/OpenFeatureAPI.java 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Kavindu-Dodan Kavindu-Dodan enabled auto-merge (squash) August 11, 2023 17:45
@Kavindu-Dodan Kavindu-Dodan disabled auto-merge August 11, 2023 17:46
@toddbaert toddbaert changed the title fix: fix API shutdown behavior fix: ability to set provider after shutdown Aug 11, 2023
@toddbaert
Copy link
Member

toddbaert commented Aug 11, 2023

@Kavindu-Dodan I've updated the PR title to be a bit more precise, IMO.

@toddbaert toddbaert merged commit fb42a92 into open-feature:main Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RejectedExecutionException thrown when calling setProvider after shutdown
4 participants