HDFS-4400. DFSInputStream#getBlockReader: last retries should ignore the cache. Contributed by Colin Patrick McCabe.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-347@1433144 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12bf674e8e
commit
d08b1af26a
|
@ -17,3 +17,5 @@ HDFS-4388. DomainSocket should throw AsynchronousCloseException when appropriate
|
||||||
HDFS-4390. Bypass UNIX domain socket unit tests when they cannot be run.
|
HDFS-4390. Bypass UNIX domain socket unit tests when they cannot be run.
|
||||||
(Colin Patrick McCabe via todd)
|
(Colin Patrick McCabe via todd)
|
||||||
|
|
||||||
|
HDFS-4400. DFSInputStream#getBlockReader: last retries should ignore the cache
|
||||||
|
(Colin Patrick McCabe via todd)
|
||||||
|
|
|
@ -941,7 +941,7 @@ public class DFSInputStream extends FSInputStream implements ByteBufferReadable
|
||||||
// equivalent to declaring the DataNode bad.
|
// equivalent to declaring the DataNode bad.
|
||||||
boolean triedNonDomainSocketReader = false;
|
boolean triedNonDomainSocketReader = false;
|
||||||
for (int retries = 0;
|
for (int retries = 0;
|
||||||
retries < nCachedConnRetry && (!triedNonDomainSocketReader);
|
retries < nCachedConnRetry || (!triedNonDomainSocketReader);
|
||||||
++retries) {
|
++retries) {
|
||||||
Peer peer = null;
|
Peer peer = null;
|
||||||
if (retries < nCachedConnRetry) {
|
if (retries < nCachedConnRetry) {
|
||||||
|
|
Loading…
Reference in New Issue