Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Netty 4 #19526

Merged
merged 24 commits into from
Jul 23, 2016
Merged

Introduce Netty 4 #19526

merged 24 commits into from
Jul 23, 2016

Commits on Jul 23, 2016

  1. Introduce Netty 4

    This commit adds transport-netty4, a transport and HTTP implementation
    based on Netty 4.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    46cef63 View commit details
    Browse the repository at this point in the history
  2. Remove use of deprecated field in Netty4CorsConfig

    This commit removes the use of the deprecated field
    HttpHeaders.EMPTY_HEADERS in favor of EmptyHttpHeaders.INSTANCE.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    dd88f56 View commit details
    Browse the repository at this point in the history
  3. Cleaner exception unwrapping on transport layer

    Today when an exception occurs on the transport layer, an exception
    bubbles up where it is caught in the Netty layer and wrapped in
    Netty-specific exceptions. These exceptions must be unwrapped to be
    pushed back down to the transport layer for handling. This commit cleans
    up this unwrapping in the Netty 4 module.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    cee2a90 View commit details
    Browse the repository at this point in the history
  4. Update Netty 4 SHAs to latest snapshots

    This commit updates the SHAs for the Netty 4 dependencies to the SHAs
    for the 20160721-*-6 snapshots.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    2aa6763 View commit details
    Browse the repository at this point in the history
  5. Cleanup TransportServiceAdapter#received/sent

    This commit renames the TransportServiceAdapter#received and
    TransportServiceAdapter#sent interface methods for clarity, and
    clarifies the usage in Netty4MessageChannelHandler.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    621161b View commit details
    Browse the repository at this point in the history
  6. Netty 4 resource management

    This commit improves the handling of resources in the Netty 4 networking
    implementation.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    e57f1cd View commit details
    Browse the repository at this point in the history
  7. Simplify close condition in Netty 4 HTTP channel

    To determine if we want to close a connection on completion of a
    request, we need compare the value of the connection header to the
    string "keep-alive" when the connection is an HTTP 1.0
    connection. However, the conditional under question here uses the unary
    not operator which can sometimes be tricky to see, especially in long
    expressions. This commit replaces the uses of the unary not operator
    with comparison to false.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    fc320bc View commit details
    Browse the repository at this point in the history
  8. Move initializer for Netty 4 HTTP request params

    Today we initialize the params field for an instance of
    Netty4HttpRequest in its constructor. It might be simpler to just
    initialize the field directly, so that's what we do in this commit.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    184083c View commit details
    Browse the repository at this point in the history
  9. Simplify REST requests

    The base REST request implementation RestRequest defines some abstract
    methods that are just duplicated across the implementations of the
    inheriting classes. This commit moves these duplicated impelementations
    to the base class for simplification.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    77254b2 View commit details
    Browse the repository at this point in the history
  10. Default transport client to Netty 3

    This commit marks Netty 3 as the default transport client networking
    implementation, for now.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    ed8355d View commit details
    Browse the repository at this point in the history
  11. Clarifying exception swallowing in TCP decode

    On the transport layer when decoding the header, we catch and silently
    swallow and IllegalStateException. This is because this state naturally
    arises when we have fully consumed the incoming byte buffer. This commit
    adds a comment explaining this situation.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    816018c View commit details
    Browse the repository at this point in the history
  12. Fix BytesRestResponseTests test case

    This commit fixes a broken test case in BytesRestResponseTests that
    was broken by an earlier refactoring.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    c4c9c87 View commit details
    Browse the repository at this point in the history
  13. Fix resource leak in Netty 4

    This commit addresses a resource leak in the Netty 4 module that arises
    when the content of a request is held on to after the request has
    completed.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    2b2caea View commit details
    Browse the repository at this point in the history
  14. Update Netty 4 SHAs to latest snapshots

    This commit updates the SHAs for the Netty 4 dependencies to the SHAs
    for the 20160721-*-7 snapshots.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    93317e5 View commit details
    Browse the repository at this point in the history
  15. Fix NPE in Reindex retry tests

    This commit fixes an NPE that arises in the retry tests due to the
    ordering of the setup methods.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    18d53d3 View commit details
    Browse the repository at this point in the history
  16. Run packaged REST tests with Netty 4 module

    This commit modifes the Netty 4 build so that the packaged REST tests
    are run with the Netty 4 module integration tests.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    b458cb1 View commit details
    Browse the repository at this point in the history
  17. Revert size header frame decoding changes

    This commit reverts changes to size header frame decoding to keep the
    API simple, for now.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    702bbe4 View commit details
    Browse the repository at this point in the history
  18. Use Elastic Netty snapshot artifacts

    This commit modifies the Netty 4 dependencies to use Elastic-built
    artifacts until an official release of Netty 4.1.4.Final+ is made. This
    is so that we can rely on a stable artifact in the CI environment.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    35b6c64 View commit details
    Browse the repository at this point in the history
  19. Rename lambda future variable

    This commit renames a lambda future variable from future1 to f because
    it's cleaner that way.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    df19f09 View commit details
    Browse the repository at this point in the history
  20. Clarify bytes reference to composite buffer

    This commit clarifies the conversion from BytesReference to
    CompositeBuffer in Netty4Utils, and provides a safer conversion.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    2573dca View commit details
    Browse the repository at this point in the history
  21. Update Netty 4 SHAs to latest snapshots

    This commit updates the SHAs for the Netty 4 dependencies to the SHAs
    for the elastic-20160722-*-7 snapshots.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    463a4f7 View commit details
    Browse the repository at this point in the history
  22. Set netty.assert.buglevel in the client

    This commit adds netty.assert.buglevel as an additional setting in the
    client.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    9960643 View commit details
    Browse the repository at this point in the history
  23. Revert renaming of client:transport

    This commit reverts the renaming of client:transport back from
    client:transport-netty.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    9a4b46f View commit details
    Browse the repository at this point in the history
  24. Preserve headers from the thread context

    This commit preserves headers from the thread context on Netty 4 HTTP
    responses.
    jasontedor committed Jul 23, 2016
    Configuration menu
    Copy the full SHA
    0da5ebe View commit details
    Browse the repository at this point in the history