ZanderXu opened a new pull request, #5086: URL: https://github.com/apache/hadoop/pull/5086
### Description of PR [HDFS-16826](https://issues.apache.org/jira/browse/HDFS-16826) ConnectionManager should advance the client stateId for every request whatever `pool` is null or not. Relate code as bellow: ``` if (pool == null) { writeLock.lock(); try { pool = this.pools.get(connectionId); if (pool == null) { pool = new ConnectionPool( this.conf, nnAddress, ugi, this.minSize, this.maxSize, this.minActiveRatio, protocol, new PoolAlignmentContext(this.routerStateIdContext, nsId)); this.pools.put(connectionId, pool); this.connectionPoolToNamespaceMap.put(connectionId, nsId); } // BUG Here long clientStateId = RouterStateIdContext.getClientStateIdFromCurrentCall(nsId); pool.getPoolAlignmentContext().advanceClientStateId(clientStateId); } finally { writeLock.unlock(); } } ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
