Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8410

HTTPTransportFactory's logger performs blocking call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.4.1
    • None
    • Transports
    • None
    • Unknown

    Description

      I'm doing a POC using clients generated from wsdl2java and Spring Webflux.

      When I enable BlockHound to check for any blocking calls, the logger from HTTPTransportFactory blocks: https://github.com/apache/cxf/blob/cxf-3.4.2/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java#L71

      From debugging, when the logger is initialized, it attempts to load https://github.com/apache/cxf/blob/cxf-3.4.2/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties

      Loading that file from the containing JAR via ResourceBundle is a blocking operation as far as I can tell.

      My expectation is that when I use an async method from the generated client, there should not be any blocking calls made.

      I've created a sample project and a failing test that showcases the issue: https://github.com/ciscoo/cxf-blockhound-webflux

      I've also attached the stacktrace as well which shows the blocking call.

      Attachments

        1. stacktrace.log
          13 kB
          Francisco Mateo

        Activity

          People

            Unassigned Unassigned
            fjmateo Francisco Mateo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: