Skip to content

Commit

Permalink
SNOW-569611 do not allow concurrent client.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-kkloudas committed Apr 22, 2022
1 parent 68064f6 commit ed34e34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ List<BlobMetadata> getRetryBlobs(

/** Close the client, which will flush first and then release all the resources */
@Override
public void close() throws Exception {
public synchronized void close() throws Exception {
if (isClosed) {
return;
}
Expand Down

0 comments on commit ed34e34

Please sign in to comment.