Skip to content

Commit

Permalink
HDFS-17461. Fix spotbugs in PeerCache#getInternal (#6721). Contribute…
Browse files Browse the repository at this point in the history
…d by Haiyang Hu.

Reviewed-by: ZanderXu <[email protected]>
Reviewed-by: Ayush Saxena <[email protected]>
Signed-off-by: He Xiaoqiao <[email protected]>
  • Loading branch information
haiyang1987 authored and Sadanand Shenoy committed Oct 2, 2024
1 parent 8d60333 commit b8f482a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ public Peer get(DatanodeID dnId, boolean isDomain) {

private synchronized Peer getInternal(DatanodeID dnId, boolean isDomain) {
List<Value> sockStreamList = multimap.get(new Key(dnId, isDomain));
if (sockStreamList == null) {
return null;
}

Iterator<Value> iter = sockStreamList.iterator();
while (iter.hasNext()) {
Value candidate = iter.next();
Expand Down

0 comments on commit b8f482a

Please sign in to comment.