Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-708

Repeated calls to Netty IPC service fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      It seems there is an issue with the Netty ipc mechanism. It's closing it's connection after the first invocation and all subsequent invocations fail.

      The other IPC mechanisms store the negotiated protocol in the Tranceiver and use this to indicate if the connection should be maintained. The patch adds this functionality to the Netty Server; it now passes in a tranceiver for this purpose and only closes the connection if the 'isConnected' call after the response is false.

      The patch tweaks the tests a little too, adding a test for the number of handshakes and adding a repeated calls test to catch this in the future.

      1. netty-test.patch
        12 kB
        Stephen Gargan
      2. AVRO-708.patch
        13 kB
        Doug Cutting

        Activity

        Hide
        cutting Doug Cutting added a comment -

        I committed this. Thanks, Stephen!

        Show
        cutting Doug Cutting added a comment - I committed this. Thanks, Stephen!
        Hide
        cutting Doug Cutting added a comment -

        Here's a version of this patch updated for the new project layout.

        Show
        cutting Doug Cutting added a comment - Here's a version of this patch updated for the new project layout.

          People

          • Assignee:
            sgargan Stephen Gargan
            Reporter:
            sgargan Stephen Gargan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development