Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
ConnectionManager should advance the client stateId for every request whatever pool is null or not.
Bug Code as bellow:
// Create the pool if not created before 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(); } }
Attachments
Issue Links
- is caused by
-
HDFS-13522 HDFS-13522: Add federated nameservices states to client protocol and propagate it between routers and clients.
- Resolved
- relates to
-
HDFS-13522 HDFS-13522: Add federated nameservices states to client protocol and propagate it between routers and clients.
- Resolved
- links to