Skip to content

Commit e02750e

Browse files
author
xuesenliang
committed
trivial
1 parent 34c264c commit e02750e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/SocketIOWithTimeout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ private static SelectorInfo get(SelectableChannel channel) throws IOException {
390390
ConcurrentLinkedDeque<SelectorInfo> selectorQ = providerMap.computeIfAbsent(
391391
provider, k -> new ConcurrentLinkedDeque<>());
392392

393-
SelectorInfo selInfo = selectorQ.removeLast(); // last in first out
393+
SelectorInfo selInfo = selectorQ.pollLast(); // last in first out
394394
if (selInfo == null) {
395395
Selector selector = provider.openSelector();
396396
// selInfo will be put into selectorQ after `#release()`

0 commit comments

Comments
 (0)