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

'quarkus.log.console.format' '%i' Process ID fixed at build time #39854

Closed
ramiswailem opened this issue Apr 3, 2024 · 5 comments · Fixed by #40405
Closed

'quarkus.log.console.format' '%i' Process ID fixed at build time #39854

ramiswailem opened this issue Apr 3, 2024 · 5 comments · Fixed by #40405
Labels
area/native-image kind/bug Something isn't working
Milestone

Comments

@ramiswailem
Copy link

Describe the bug

it looks like 'Process ID' is fixed at build time when running in native mode. In JVM mode works as expected.

Expected behavior

the process ID is different every run

Actual behavior

the process ID is always the same

How to Reproduce?

  1. create the app
    quarkus create app org.acme:getting-started --extension='rest' && cd getting-started
  2. edit the application.properties to include the format:
    quarkus.log.console.format=%d{yyyy-MM-dd HH:mm:ss.SSS} %i%n
  3. build the native executable
    mvn package -Pnative -Dmaven.test.skip=true
  4. run the app
    ./target/getting-started-1.0.0-SNAPSHOT-runner
  5. close and run the app again

root@- /getting-started # ./target/getting-started-1.0.0-SNAPSHOT-runner
2024-04-03 09:47:28.286 181019
2024-04-03 09:47:28.286 181019
2024-04-03 09:47:28.286 181019
^C2024-04-03 09:47:30.899 181019
root@- /getting-started # ./target/getting-started-1.0.0-SNAPSHOT-runner
2024-04-03 09:47:31.911 181019
2024-04-03 09:47:31.911 181019
2024-04-03 09:47:31.911 181019
^C2024-04-03 09:49:08.309 181019

Output of uname -a or ver

Linux rubin-ec84.de 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux

Output of java -version

java version "21.0.2" 2024-01-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)

Mandrel or GraalVM version (if different from Java)

java version "21.0.2" 2024-01-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)

Quarkus version or git rev

3.9.1

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

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)

Additional information

No response

@ramiswailem ramiswailem added area/native-image kind/bug Something isn't working labels Apr 3, 2024
Copy link

quarkus-bot bot commented Apr 3, 2024

/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel)

@dmlloyd
Copy link
Member

dmlloyd commented Apr 3, 2024

Fixed in smallrye/smallrye-common#299 and jboss-logging/jboss-logmanager#464. Either component update should take care of the issue.

@geoand
Copy link
Contributor

geoand commented Apr 3, 2024

@dmlloyd cool. I assume we can get new releases soon?

@dmlloyd
Copy link
Member

dmlloyd commented Apr 3, 2024

Yeah ASAP.

@geoand
Copy link
Contributor

geoand commented Apr 3, 2024

🙏

@quarkus-bot quarkus-bot bot added this to the 3.11 - main milestone May 2, 2024
@gsmet gsmet modified the milestones: 3.11 - main, 3.10.1 May 10, 2024
@gsmet gsmet modified the milestones: 3.10.1, 3.8.6 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/native-image kind/bug Something isn't working
Projects
None yet
4 participants