]> gerrit.simantics Code Review - simantics/platform.git/commit
Improved network-drive-resilience in index directory creation 57/1657/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 15:36:02 +0000 (18:36 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 26 Mar 2018 15:36:34 +0000 (18:36 +0300)
commitcc084b2c81c8b47adfd1d33b507164c6c42728fa
tree5bdd640ebb38a6b64c715f4c33aa420bfdc7e40a
parent94b6c96f6dafc8db9e7d0c5fc58e334b1aaffa5e
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: Id44c5118ad97fbb83dcec87f77717185d3e402a1
bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java