virajjasani opened a new pull request, #5294:
URL: https://github.com/apache/hadoop/pull/5294

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to