Skip to content

Commit c5e1b9d

Browse files
committed
HDFS-17461. Modify patch based on comments
1 parent 4116fa0 commit c5e1b9d

File tree

1 file changed

+0
-4
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs

1 file changed

+0
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/PeerCache.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ public Peer get(DatanodeID dnId, boolean isDomain) {
155155

156156
private synchronized Peer getInternal(DatanodeID dnId, boolean isDomain) {
157157
List<Value> sockStreamList = multimap.get(new Key(dnId, isDomain));
158-
if (sockStreamList.isEmpty()) {
159-
return null;
160-
}
161-
162158
Iterator<Value> iter = sockStreamList.iterator();
163159
while (iter.hasNext()) {
164160
Value candidate = iter.next();

0 commit comments

Comments
 (0)