HDDS-408. Read (getKey) operation is very slow.

Contributed by Nandakumar.
This commit is contained in:
Anu Engineer 2018-09-07 07:36:24 -07:00
parent 396ce7b884
commit be1ec005f1
2 changed files with 6 additions and 2 deletions

View File

@ -44,6 +44,11 @@ public int read() throws IOException {
return inputStream.read();
}
@Override
public int read(byte[] b, int off, int len) throws IOException {
return inputStream.read(b, off, len);
}
@Override
public synchronized void close() throws IOException {
inputStream.close();

View File

@ -492,8 +492,7 @@ public OzoneInputStream getKey(
ChunkGroupInputStream.getFromOmKeyInfo(
keyInfo, xceiverClientManager, storageContainerLocationClient,
requestId);
return new OzoneInputStream(
(ChunkGroupInputStream)lengthInputStream.getWrappedStream());
return new OzoneInputStream(lengthInputStream.getWrappedStream());
}
@Override