Details
Description
In current ConnectionPool.getConnection(), it will return the first active connection:
for (int i=0; i<size; i++) { int index = (threadIndex + i) % size; conn = tmpConnections.get(index); if (conn != null && !conn.isUsable()) { return conn; } }
Here "!conn.isUsable()" should be "conn.isUsable()".
Attachments
Attachments
Issue Links
- is related to
-
HDFS-13230 RBF: ConnectionManager's cleanup task will compare each pool's own active conns with its total conns
- Resolved
- relates to
-
HDFS-13289 RBF: TestConnectionManager#testCleanup() test case need correction
- Resolved