HDFS-15936.Solve SocketTimeoutException#sendPacket() does not record SocketTimeout exception. (#2836)

Co-authored-by: zhujianghua <zhujianghua@zhujianghuadeMacBook-Pro.local>
Reviewed-by: cxorm <lianp964@gmail.com>
Reviewed-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 6f730fd25c)
This commit is contained in:
jianghuazhu 2021-07-29 12:57:28 +08:00 committed by Wei-Chiu Chuang
parent 6cc1426b63
commit 43f15578fc
No known key found for this signature in database
GPG Key ID: B362E1C021854B9D

View File

@ -631,6 +631,7 @@ private int sendPacket(ByteBuffer pkt, int maxChunks, OutputStream out,
*
* Reporting of this case is done in DataXceiver#run
*/
LOG.warn("Sending packets timed out.", e);
} else {
/* Exception while writing to the client. Connection closure from
* the other end is mostly the case and we do not care much about