Reuse connection ---------------- Key: HADOOP-7212 URL: https://issues.apache.org/jira/browse/HADOOP-7212 Project: Hadoop Common Issue Type: Bug Components: ipc Reporter: Hairong Kuang Assignee: Hairong Kuang
One of my recent RPC change introduced a regression. It makes the first RPC to server, getProtocolSignature, and following RPCs not sharing the same connection. If all clients are short lived, this regression would double the number of connections in the cluster. The cause of the regression is that getProtocolSingature uses VersionProtocol to create a Connection object, and the following RPCs uses its own protocol name like ClientProtocol. Since protocol name is part of Connection object hashcode, this forces the RPC client to create a new Connection object, therefore forcing to create a new TCP/IP connection. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira