Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18592

Sasl connection failure should log remote address

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      If Sasl connection fails with some generic error, we miss logging remote server that the client was trying to connect to.

      Sample log:

      2023-01-12 00:22:28,148 WARN  [20%2C1673404849949,1] ipc.Client - Exception encountered while connecting to the server 
      java.io.IOException: Connection reset by peer
          at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
          at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
          at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
          at sun.nio.ch.IOUtil.read(IOUtil.java:197)
          at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
          at org.apache.hadoop.net.SocketInputStream$Reader.performIO(SocketInputStream.java:57)
          at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:141)
          at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:161)
          at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:131)
          at java.io.FilterInputStream.read(FilterInputStream.java:133)
          at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
          at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
          at java.io.DataInputStream.readInt(DataInputStream.java:387)
          at org.apache.hadoop.ipc.Client$IpcStreams.readResponse(Client.java:1950)
          at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:367)
          at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:623)
          at org.apache.hadoop.ipc.Client$Connection.access$2300(Client.java:414)
      ...
      ... 

      We should log the remote server address.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vjasani Viraj Jasani
            vjasani Viraj Jasani
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment