Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] [jetty-dev] Jetty 9.1.0.RC0 Released!

Still collecting benchmarks, so that will eventually be released.

But the vast majority of failures outside of jetty were from bad threading/async code.

Simple Example:
   Client wants to use a CountdownLatch to know when the response was received in an NIO sense.

   The bad client code
      [client thread]
        initiate request
        setup countdown latch
        on response, countdown the latch
        wait for latch
        process response

  The response from jetty would arrive before the setup of the countdown latch.

  Simple fix on the client side code:
      [client thread]
        setup countdown latch
        on response, countdown the latch
        initiate request
        wait for latch
        process response
This is a surprisingly common pattern (race condition) seen in client code.
With jetty 9's improved performance we started to tickle this bad client threading in a sudden way, with several clients that never historically had problems with Jetty 7/8, even on the same machine/hardware/jvm.

This was a surprising result of our debugging sessions helping other projects upgrade to Jetty 9.1.

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Fri, Oct 4, 2013 at 1:38 PM, Nils Kilden-Pedersen <nilskp@xxxxxxxxx> wrote:
On Fri, Oct 4, 2013 at 3:30 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:

On Fri, Oct 4, 2013 at 1:25 PM, Nils Kilden-Pedersen <nils@xxxxxxxxxxxxxxxxxxx> wrote:
On Fri, Oct 4, 2013 at 2:50 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
We are pleased to announce the immediate availability of the first release candidate for Jetty 9.1

  Jetty 9.1.0.RC0

Distribution Downloads:

The artifacts are also available in Maven Central.  
P2 repositories are not yet available as our previous method of generating them has been deprecated and we have yet to transition that portion of the release.


The documentation for Jetty 9.1 is still catching up, but its improving every day.

New Features in Jetty 9.1:

  Servlet API 3.1
    - Async I/O

    - javax.websocket support

  Jetty WebSocket API
    - Streaming support
  Server Speed Improvements:
    - Shockingly fast response times (we respond so fast we break test cases in other projects!)

LOL. Any more details on this?

No pointing fingers from us.  Just that it happened (three times!)
We're all friends in the bigger open source community, and don't want to hurt anyone.
That's why we intentionally left off the names.

I wasn't so much interested in who's test cases broke, but details on what changes caused such improvements and if there are benchmarks to quantify them?

jetty-dev mailing list

Back to the top