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

When the workqueue is full for more than asyncExecuteTimeout milliseconds the work is never added

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.3
    • 3.3.4
    • Transports
    • None
    • Unknown

    Description

      If for some reason the workqueue fills up when using the async client. The work will be rejected and if it is still full after asyncExecuteTimeout the call to offer will also fail and the exception will be caught and ignored in AsyncHTTPConduit.setHttpResponse.

      According to the comment another try will be done on the next consume but according to our findings that will not happen. The first call to setHttpResponse sets httpResponse even if the work is not successfully added to the workqueue. So when retrySetHttpResponse is called httpResponse == null will be false and setHttpResponse is not called a second time.

       

      I have created a test case in AsyncHTTPConduit to trigger the problem and have also created a suggested fix for the problem. The patch files are attached to this issue.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            hallonbat Jan Hallonsten
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: