Skip to content

Commit

Permalink
modified cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan authored and ivan committed Aug 24, 2015
1 parent 477bb3a commit 5870590
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ public class S3Client extends DB {
*/
@Override
public void cleanup() throws DBException {
try {
this.s3Client.shutdown(); //this should not be used
//this.s3Client = null;
} catch (Exception e){
e.printStackTrace();
if(this.s3Client != null){
try {
this.s3Client.shutdown();
} catch (Exception e){
e.printStackTrace();
} finally {
this.s3Client = null;
}
}
}
/**
Expand Down

0 comments on commit 5870590

Please sign in to comment.