Skip to content

Commit

Permalink
Retry JettyServlet3ServeFromAsyncTimeout on socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
smola committed Sep 16, 2024
1 parent 7108ba0 commit bbcdc44
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import org.eclipse.jetty.server.Server
import org.eclipse.jetty.server.handler.ErrorHandler
import org.eclipse.jetty.server.session.SessionHandler
import org.eclipse.jetty.servlet.ServletContextHandler
import spock.lang.Retry

import javax.servlet.AsyncEvent
import javax.servlet.AsyncListener
import javax.servlet.Servlet
Expand Down Expand Up @@ -510,6 +512,8 @@ class ServeFromOnAsyncTimeout extends AbstractHttpServlet {
}
}

//@Flaky("Fails with timeout very often under high load")
@Retry(exceptions = SocketTimeoutException, count = 3, delay = 500, mode = Retry.Mode.SETUP_FEATURE_CLEANUP)
class JettyServlet3ServeFromAsyncTimeout extends JettyServlet3Test {
@Override
Class<Servlet> servlet() {
Expand Down

0 comments on commit bbcdc44

Please sign in to comment.