Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ public InputStream readFile(String pathStr) throws IOException {
config);
String key = ofsPath.getKeyName();
try {
OzoneBucket bucket = getBucket(ofsPath, false);
return bucket.readFile(key).getInputStream();
ClientProtocol clientProtocol = ozoneClient.getProxy();
return clientProtocol.readFile(ofsPath.getVolumeName(), ofsPath.getBucketName(), key).getInputStream();
} catch (OMException ex) {
if (ex.getResult() == OMException.ResultCodes.FILE_NOT_FOUND
|| ex.getResult() == OMException.ResultCodes.KEY_NOT_FOUND
Expand Down