Skip to content

fix(runtime): singleton config source provider#628

Closed
squakez wants to merge 1 commit intoapache:masterfrom
squakez:fix/625_duplicate_config
Closed

fix(runtime): singleton config source provider#628
squakez wants to merge 1 commit intoapache:masterfrom
squakez:fix/625_duplicate_config

Conversation

@squakez
Copy link
Contributor

@squakez squakez commented Feb 11, 2021

Created a singleton to workaround an issue on Quarkus side which is calling the method twice at runtime.

Ref #625

Release Note

fix(runtime): singleton config source provider

@squakez squakez force-pushed the fix/625_duplicate_config branch from be25c08 to 9cb2979 Compare February 11, 2021 10:14
Created a singleton to workaround an issue on Quarkus side which is calling the method twice at runtime.

Ref apache#625
@squakez squakez force-pushed the fix/625_duplicate_config branch from 9cb2979 to 7bfd5df Compare February 11, 2021 10:47
@squakez
Copy link
Contributor Author

squakez commented Feb 12, 2021

Unfortunately this patch cannot work for native images. As shown by the integration tests, when the integration are running in native mode we try to initialize the properties during augmentation phase. At that stage we don't have yet any system property or environment variables. I tried delaying the fetching at a later stage by checking the presence of those system properties. It results in a failure because Quarkus removes the class, marking it as not used (and producing a runtime error later). Probably does not make sense to go ahead until Quarkus team find a proper solution.

@lburgazzoli
Copy link
Contributor

lburgazzoli commented Mar 24, 2021

@squakez what should we do with this PR ? I think we should either close it or make it a draft

@squakez
Copy link
Contributor Author

squakez commented Mar 24, 2021

We can close it.

@squakez squakez closed this Mar 24, 2021
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.

3 participants