Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-833

[Proxy] No failover on empty response from node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.4.Final
    • 1.4.0.Final
    • None
    • None
    • Hide

      1. Start worker with servlet that has System.exit(1) call inside
      2. Start Eap as balancer
      3. Make request to servlet via balancer (curl BALANCER_ADDRESS:BALANCER_PORT/SERVLET)
      Expected :
      response with 50x response code
      Actual:
      No response, curl hang

      Show
      1. Start worker with servlet that has System.exit(1) call inside 2. Start Eap as balancer 3. Make request to servlet via balancer (curl BALANCER_ADDRESS:BALANCER_PORT/SERVLET) Expected : response with 50x response code Actual: No response, curl hang

      Undertow balancer do not recognizes empty response as an error.
      Can happen when JVM got killed when handling request (System.exit())

      @Override
              public void failed(final HttpServerExchange exchange) {
                  final long time = System.currentTimeMillis();
                  if (tries++ < maxRetryAttempts) { 
                  ...
      

      Undertow make curl hang.
      Apache httpd correctly recognizes empty response as error and starts fail over method. If unsuccessful, 50x is returned in response.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bsikora Bogdan Sikora (Inactive)
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: