Skip to content
Merged
Changes from all commits
Commits
File filter

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 @@ -361,6 +361,11 @@ public void cleanup() {
mManager.abortMultipartUploads(mBucketName, cleanBefore);
}

@Override
public void close() {
mExecutor.shutdown();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to make sure this mExecutor is not passed in or shared right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used by the multipart upload. This is a safe shutdown so it will wait for any live tasks that have not finished, but any upload objects that have been created but not yet started will fail.

Actually it looks like the UFS class isn't actually be closed in all places where it is created either, so there might be other things to fix as well.

}

@Override
protected boolean copyObject(String src, String dst) {
LOG.debug("Copying {} to {}", src, dst);
Expand Down