Skip to content
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

Reinitialize org.wildfly.common.net.HostName during native application's runtime #14603

Merged
merged 1 commit into from Jan 26, 2021
Merged

Conversation

jaikiran
Copy link
Member

Fixes #14423

The commit here re-initializes the org.wildfly.common.net.HostName so that this class recomputes various fields that it holds on to as static class level member variables.

I decided to add this @BuildStep in the NativeImageConfigBuildStep since although the issue happens in JBoss logging (which uses this class), given the nature and usage of this HostName class, it looked more appropriate to not have it tied to logging.

Manual testing of the linked issue after this fix worked fine for me locally.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @jaikiran !

@gsmet gsmet merged commit 2fcf215 into quarkusio:master Jan 26, 2021
@ghost ghost added this to the 1.12 - master milestone Jan 26, 2021
@gsmet gsmet modified the milestones: 1.12 - master, 1.11.1.Final Jan 26, 2021
@jaikiran jaikiran deleted the qk-14423 branch January 27, 2021 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log records show the hostname on which the native executable was generated
3 participants