Skip to content
Snippets Groups Projects
Commit 912a956d authored by Zheng Zhongxiang's avatar Zheng Zhongxiang
Browse files

[S3] Close S3object in readFromStorage

parent 35c02df8
No related branches found
No related tags found
No related merge requests found
......@@ -432,6 +432,7 @@ public class S3Client extends DB {
objectData.read(inputStreamToByte, 0, sizeOfFile);
result.put(key, new ByteArrayByteIterator(inputStreamToByte));
objectData.close();
objectAndMetadata.getKey().close();
} catch (Exception e){
System.err.println("Not possible to get the object "+key);
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment