Skip to content

Commit

Permalink
Merge pull request #12411 from jetty/jetty-12.0.x-concurrency-distro-…
Browse files Browse the repository at this point in the history
…test

concurrency issue unzipping file, need to catch FileSystemAlreadyExistsException
  • Loading branch information
olamy authored Oct 22, 2024
2 parents afdbad5 + 568cb27 commit 7bc94d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.nio.file.CopyOption;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.FileSystem;
import java.nio.file.FileSystemAlreadyExistsException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -261,7 +262,7 @@ public static void unzip(Path archive, Path outputDir) throws IOException
}
}
}
catch (FileAlreadyExistsException e)
catch (FileAlreadyExistsException | FileSystemAlreadyExistsException e)
{
LOG.warn("ignore FileAlreadyExistsException: archiveURI {}, outputDir {}", archiveURI, outputDir);
}
Expand Down

0 comments on commit 7bc94d6

Please sign in to comment.