demery-pivotal opened a new pull request #7133: URL: https://github.com/apache/geode/pull/7133
Fix `DeployedJarTest`, which intermittently throws `DirectoryNotEmptyException` on Windows. PROBLEM `DeployedJarTest` uses Geode's custom Java compiler to create jar files. When the compiler finishes compiling, it calls Apache commons `FileUtils.deleteDirectory(dir)` to delete the temporary files it created during compilation. `FileUtils.deleteDirectory(dir)` first "cleans" `dir` by recursively removing all files from it, then deletes `dir` itself. On Windows, deleting `dir` sometimes throws `DirectoryNotEmptyException` even though `FileUtils` has cleaned the directory. I do not know the cause of this. SOLUTION Change our custom Java compiler to create temporary files in memory instead of on the file system. That way there are no file system files to delete. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
