Skip to content

3.18 regression: quarkus.uuid is the same for every run in native images #45863

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

Closed
imperatorx opened this issue Jan 26, 2025 · 2 comments · Fixed by #45864
Closed

3.18 regression: quarkus.uuid is the same for every run in native images #45863

imperatorx opened this issue Jan 26, 2025 · 2 comments · Fixed by #45864
Assignees
Milestone

Comments

@imperatorx
Copy link
Contributor

imperatorx commented Jan 26, 2025

Describe the bug

In 3.18.0.CR1, the quarkus.uuid has the same value for all application runs when compiled to a native image

Expected behavior

It was working fine, and returned a unique value in 3.17 in native images

Actual behavior

It is always the same, causing crashes in distributed systems applications that rely on a unique id.

Possible causes?
#45434
#45610

How to Reproduce?

compile a simple app to native:

package org.acme;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.config.inject.ConfigProperty;

@Path("/hello")
public class GreetingResource {

    @ConfigProperty(name = "quarkus.uuid")
    String uuid;

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "Hello from Quarkus REST "+uuid;
    }
}

Start, call /hello, take note of uuid, shutdown
Repeat, will yield same uuid

Output of uname -a or ver

No response

Output of java -version

21

Mandrel or GraalVM version (if different from Java)

mandrel 21

Quarkus version or git rev

3.18.0.CR1

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@imperatorx imperatorx added area/native-image kind/bug Something isn't working labels Jan 26, 2025
Copy link

quarkus-bot bot commented Jan 26, 2025

/cc @Karm (native-image), @galderz (native-image), @zakkak (native-image)

@geoand
Copy link
Contributor

geoand commented Jan 27, 2025

Thanks for reporting.

Does the same happen with Quarkus 3.18.0? Never mind, I verified the problem persists with 3.18.0. #45434 is the cause of the issue and #45864 is the fix for the regression

@geoand geoand added the triage/needs-feedback We are waiting for feedback. label Jan 27, 2025
@geoand geoand self-assigned this Jan 27, 2025
@geoand geoand removed the triage/needs-feedback We are waiting for feedback. label Jan 27, 2025
@geoand geoand closed this as completed in f5a8c95 Jan 27, 2025
geoand added a commit that referenced this issue Jan 27, 2025
Ensure that `quarkus.uuid` is not determined at native image build time
@quarkus-bot quarkus-bot bot added this to the 3.19 - main milestone Jan 27, 2025
@gsmet gsmet modified the milestones: 3.19 - main, 3.18.1 Jan 28, 2025
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jan 28, 2025
carlesarnal pushed a commit to carlesarnal/quarkus that referenced this issue Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants