Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21303

camel-core - Tone down logging noise for IOHelper close

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.4, 4.8.1, 4.9.0
    • camel-core
    • None
    • Unknown

    Description

      When closing streams then it may already be closed or something. We should just log this at DEBUG level by default as WARN is too noisy.

       

      And you may end up with double loggings and whatnot

       
      2024-10-02T11:46:19.545+02:00  WARN 44994 — [onPool-worker-1] org.apache.camel.util.IOHelper           : Cannot close. Reason: Response not usable after response errors.
       
      org.springframework.web.context.request.async.AsyncRequestNotUsableException: Response not usable after response errors.
      at org.springframework.web.context.request.async.StandardServletAsyncWebRequest$LifecycleHttpServletResponse.obtainLockOrRaiseException(StandardServletAsyncWebRequest.java:335) ~[spring-web-6.1.13.jar:6.1.13]
      at org.springframework.web.context.request.async.StandardServletAsyncWebRequest$LifecycleServletOutputStream.close(StandardServletAsyncWebRequest.java:424) ~[spring-web-6.1.13.jar:6.1.13]
      at org.apache.camel.util.IOHelper.close(IOHelper.java:421) ~[camel-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.util.IOHelper.close(IOHelper.java:481) ~[camel-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.util.IOHelper.close(IOHelper.java:491) ~[camel-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.http.common.DefaultHttpBinding.copyStream(DefaultHttpBinding.java:489) ~[camel-http-common-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.http.common.DefaultHttpBinding.doWriteDirectResponse(DefaultHttpBinding.java:552) ~[camel-http-common-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.http.common.DefaultHttpBinding.doWriteResponse(DefaultHttpBinding.java:451) ~[camel-http-common-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.http.common.DefaultHttpBinding.writeResponse(DefaultHttpBinding.java:371) ~[camel-http-common-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpConsumer.afterProcess(SpringBootPlatformHttpConsumer.java:135) ~[camel-platform-http-starter-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpConsumer.handleService(SpringBootPlatformHttpConsumer.java:124) ~[camel-platform-http-starter-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpConsumer.lambda$service$0(SpringBootPlatformHttpConsumer.java:75) ~[camel-platform-http-starter-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
      at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[na:na]
      at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[na:na]
      at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[na:na]
      at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[na:na]
      at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[na:na]
      at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[na:na]
      at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[na:na]

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: