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

NettyTransceiver can NPE when getRemoteName() is called

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      NettyTransceiver can NPE if the channel is closed while a request is underway. The correct thing to do seems to be to check for null and throw an IOException ("underlying transport no longer available").

      ! java.lang.NullPointerException: null
      ! at org.apache.avro.ipc.NettyTransceiver.getRemoteName(NettyTransceiver.java:431)
      ! at org.apache.avro.ipc.Requestor.writeHandshake(Requestor.java:202)
      ! at org.apache.avro.ipc.Requestor.access$300(Requestor.java:52)
      ! at org.apache.avro.ipc.Requestor$Request.getBytes(Requestor.java:478)
      ! at org.apache.avro.ipc.Requestor.request(Requestor.java:181)
      ! at org.apache.avro.ipc.Requestor.request(Requestor.java:129)
      ! at org.apache.avro.ipc.specific.SpecificRequestor.invoke(SpecificRequestor.java:84)
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            panghy Clement Pang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development