Skip to content

Commit

Permalink
0003448: DataExtractorService can't create file lock first time due to
Browse files Browse the repository at this point in the history
missing 'common' directory
  • Loading branch information
mmichalek committed Feb 22, 2018
1 parent 4c63eb2 commit 1a4a2d7
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -212,6 +212,11 @@ public StagingFileLock acquireFileLock(String serverInfo, Object... path) {
StagingFileLock stagingFileLock = new StagingFileLock();

File lockFile = new File(lockFilePath);
File containingDirectory = lockFile.getParentFile();

if (containingDirectory != null) {
containingDirectory.mkdirs();
}

boolean acquired = false;
try {
Expand Down

0 comments on commit 1a4a2d7

Please sign in to comment.