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

[S3] Close opened S3Object

S3Object opened in getS3ObjectAndMetadata() should be closed.
parent 432e9581
No related branches found
No related tags found
No related merge requests found
......@@ -353,6 +353,7 @@ public class S3Client extends DB {
int sizeOfFile = (int)objectAndMetadata.getValue().getContentLength();
fieldCount = sizeOfFile/sizeArray;
totalSize = sizeOfFile;
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