]> gerrit.simantics Code Review - simantics/platform.git/commit
Improved network-drive-resilience in index directory creation 56/1656/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 13:54:45 +0000 (15:54 +0200)
commit8eab8d08e151064ceb4178a29534d2ffb9207a94
treeaaf65f0a1b81978fd02382aefb59df46a2a04472
parent803c42fd316859809eaeb3dc6a88b22cbf86b4b6
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