Skip to content

fix: ability to set provider after shutdown - #556

Merged
toddbaert merged 3 commits into
open-feature:mainfrom
Kavindu-Dodan:fix/fix-api-shutdown
Aug 11, 2023
Merged

toddbaert merged 3 commits into
open-feature:mainfrom
Kavindu-Dodan:fix/fix-api-shutdown

Conversation

@Kavindu-Dodan

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

Copy link
Copy Markdown
Contributor

This PR

Fix #552

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

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@codecov

codecov Bot commented Aug 11, 2023 •

Copy link
Copy Markdown

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

Signed-off-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

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

toddbaert commented Aug 11, 2023 •

Copy link
Copy Markdown
Member

@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