quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.76k stars 2.68k forks source link

ERROR [io.ver.cor.htt.imp.HttpClientRequestImpl] (vert.x-eventloop-thread-1) {} Connection was closed #39695

Open rickbear opened 7 months ago

rickbear commented 7 months ago

Describe the bug

I have found log entries in my log with the following message: ERROR [io.ver.cor.htt.imp.HttpClientRequestImpl] (vert.x-eventloop-thread-1) {} Connection was closed When I try to trace the error in other logs I can see no other errors. It seems like everything behaves like it should. Though I still wonder if the above message could mean something I should be worried about?

This bug seems to be very similar to my problem on a ConnectionBase instead of HttpClientRequestImpl.

I am using Quarkus 3.8.1 with these dependencies:

io.quarkus:quarkus-smallrye-openapi
io.quarkus:quarkus-rest-client-reactive-jackson
io.quarkus:quarkus-resteasy-reactive-jackson
io.quarkus:quarkus-smallrye-fault-tolerance
io.quarkus:quarkus-arc
io.quarkus:quarkus-smallrye-context-propagation
io.quarkus:quarkus-smallrye-health
io.quarkus:quarkus-opentelemetry
io.opentelemetry:opentelemetry-extension-trace-propagators
io.quarkus:quarkus-smallrye-jwt
io.quarkus:quarkus-cache

Expected behavior

That either there would be no error log or there would be a more descriptive error log which points me in the correct direction.

Actual behavior

This log entry is shown: ERROR [io.ver.cor.htt.imp.HttpClientRequestImpl] (vert.x-eventloop-thread-1) {} Connection was closed for like it seems no particular reason.

How to Reproduce?

It doesn't seem there is a special trigger for the log entry. There are hundreds of calls per minute to this service. So there should be either a lot of entries or none. It appears randomly it seems.

Output of uname -a or ver

GNU/Linux

Output of java -version

Java 17

Quarkus version or git rev

Quarkus 3.8.1

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

Gradle 8.6

Additional information

I know uname -a and java -version is not very specific. The code is build and deployed on a system I have no much control of. I can find more specific informations about it if it is of any importance for the issue but it might take a while because of the easter holidays.

Leokao4Autopass commented 4 months ago

I have the same issue. the Error message happened in my production environment, but I can't find any exception stack trace in log, this so hard identify the root cause.

log snippet

2024-06-18 17:17:16,047 INFO  [com.pkl.aut.mq.goo.pub.GoogleDomainEventBus$postAll$1$1:40] [] [] published Successful. message id: 11537991230112863.
2024-06-18 17:17:18,981 ERROR [io.ver.cor.htt.imp.HttpClientRequestImpl:-1] [] [] Connection was closed
2024-06-18 17:17:35,415 INFO  [com.pkl.aut.com.uti.RedissonLockFactory:17] [f791bfddf6f7961d4817dddc2d8f50d6] [false] Redisson tryLock by key: lock:ISSUE_INVOICE_2292672

Output of uname -a or ver

GNU/Linux

Output of java -version

Java 17

Quarkus version or git rev

Quarkus 3.8.3

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

Gradle 8.4

Additional information

My application dependence some external systems

My library dependencies

    implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.15.2")

    implementation("org.jboss.logmanager:log4j2-jboss-logmanager")

    implementation("io.quarkus:quarkus-resteasy-reactive")
    implementation("io.quarkus:quarkus-resteasy-reactive-jackson")
    implementation("io.quarkus:quarkus-rest-client-reactive-jackson")
    implementation("io.quarkus:quarkus-hibernate-validator")
    implementation("io.quarkus:quarkus-security")

    implementation("io.quarkus:quarkus-smallrye-openapi")

    implementation("io.quarkus:quarkus-hibernate-orm-panache")
    implementation("io.quarkus:quarkus-spring-data-jpa")

    implementation("io.quarkus:quarkus-liquibase")

    implementation("io.quarkus:quarkus-config-yaml")

    implementation("io.quarkus:quarkus-micrometer-registry-prometheus")
    implementation("io.quarkus:quarkus-smallrye-health")

    implementation("io.quarkus:quarkus-redis-client")

    implementation("io.quarkus:quarkus-kubernetes")

    implementation("io.quarkus:quarkus-opentelemetry")
    implementation("io.opentelemetry.instrumentation:opentelemetry-jdbc")

    implementation("io.quarkiverse.googlecloudservices:quarkus-google-cloud-storage")
    implementation("io.quarkiverse.googlecloudservices:quarkus-google-cloud-pubsub")

    implementation("io.quarkiverse.loggingsentry:quarkus-logging-sentry:2.0.4")

    testImplementation("io.quarkus:quarkus-junit5")
    testImplementation("io.rest-assured:rest-assured")