-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
None
On https://lists.opendaylight.org/pipermail/yangtools-dev/2017-October/002036.html and https://lists.opendaylight.org/pipermail/netconf-dev/2018-May/001790.html the following problem was reported, but it seems to be a heisenbug occuring only occassionally (because the following mulipatch job went further):
Caused by: java.lang.IllegalArgumentException: Unable to create cache directory at cache/schema at com.google.common.base.Preconditions.checkArgument(Preconditions.java:210) at org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache.<init>(FilesystemSchemaSourceCache.java:74) at org.opendaylight.netconf.topology.AbstractNetconfTopology.<clinit>(AbstractNetconfTopology.java:147) ... 31 more
Looking at https://github.com/opendaylight/yangtools/blob/master/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCache.java I've noticed that while the error message says ""Unable to create..." there is actually no storageDirectory.mkdirs() there - perhaps that would help, in some corner case?