HADOOP-13559. Remove close() within try-with-resources in ChecksumFileSystem/ChecksumFs classes. (Contributed by Aaron Fabbri)
(cherry picked from commit 6fcb04c178
)
This commit is contained in:
parent
f6578999d1
commit
250ddf155f
|
@ -197,7 +197,6 @@ public abstract class ChecksumFileSystem extends FilterFileSystem {
|
||||||
new ChecksumFSInputChecker(fs, file)) {
|
new ChecksumFSInputChecker(fs, file)) {
|
||||||
checker.seek(position);
|
checker.seek(position);
|
||||||
nread = checker.read(b, off, len);
|
nread = checker.read(b, off, len);
|
||||||
checker.close();
|
|
||||||
}
|
}
|
||||||
return nread;
|
return nread;
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,6 @@ public abstract class ChecksumFs extends FilterFs {
|
||||||
new ChecksumFSInputChecker(fs, file)) {
|
new ChecksumFSInputChecker(fs, file)) {
|
||||||
checker.seek(position);
|
checker.seek(position);
|
||||||
nread = checker.read(b, off, len);
|
nread = checker.read(b, off, len);
|
||||||
checker.close();
|
|
||||||
}
|
}
|
||||||
return nread;
|
return nread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue