]> gerrit.simantics Code Review - simantics/platform.git/commit
Improved network-drive-resilience in index directory creation 55/1655/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 11:52:39 +0000 (14:52 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 11:52:39 +0000 (14:52 +0300)
commite89d0e20604e03d5eb44aa8d21fc322f02f5b480
tree353a2d6940173a11c684bc6fe93d387df670a037
parentc912edf13bf5a91b2f6dc855f54d8728aa0a64f5
Improved network-drive-resilience in index directory creation

In a product, the removed Files.exists(p) && !Files.isDirectory(p) code
threw an exception because the examined path was not guaranteed to be in
a coherent state at the time of examination but Files.createDirectories
would still take care of throwing any exceptions if there were any
problems in creating the directory.

The worst thing was that this exception was hidden and not even logged.
Luckily a problem case forced the find.

refs #7845

Change-Id: Ic3ae84afeb798772996057eee33f7467c448f3e7
bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java