Merge pull request #168 from internetarchive/gh-167

fix for race-condition when first using the WARC writers https://gith…
This commit is contained in:
Noah Levitt
2017-06-07 18:15:19 -07:00
committed by GitHub
@@ -454,7 +454,9 @@ implements Lifecycle, Checkpointable, WriterPoolSettings {
File f = path.getFile();
if (!f.exists()) {
try {
FileUtils.ensureWriteableDirectory(f);
synchronized (this) {
FileUtils.ensureWriteableDirectory(f);
}
} catch (Exception e) {
e.printStackTrace();
continue;