Commit 819722ba authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix leak of open file file descriptors...

parent 4b4d7726
Pipeline #36561 failed with stages
in 45 minutes and 59 seconds
......@@ -40,7 +40,14 @@ object FileH5 extends LazyLogging {
if (Files.exists(lockPath)) {
val (readers, writers) = (try {
val f = new java.io.RandomAccessFile(lockPath.toFile(), "r")
f.readInt() -> f.readInt()
(try {
f.readInt() -> f.readInt()
} catch {
case NonFatal(e) =>
0 -> 0
} finally {
f.close()
}): (Int, Int)
} catch {
case NonFatal(e) =>
0 -> 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment