On Thu, 2016-10-27 at 09:47 +0200, Michael Dürig wrote: > > Hi Robert, > > On 26.10.16 11:28 , Robert Munteanu wrote: > > On Wed, 2016-10-05 at 12:13 +0300, Robert Munteanu wrote: > >> > >> Created a sub-task for this > >> > >> OAK-4891 - Mount-time sanity checks for mounted NodeStore > >> instances > >> https://issues.apache.org/jira/browse/OAK-4891 > > > > I've thought about this a little more. When mounting a NodeStore we > are > > working (unsurprisingly) at the NodeStore level, so we don't have > any > > concept of node types, versions, etc. So I can't use any of the > logic > > from oak-jcr, like the VersionManagerImpl. > > This kind of logic is implemented in the various commit hooks. See > e.g. > {{org.apache.jackrabbit.oak.plugins.version.VersionHook}}. The > sanity > checks should reuse these hooks.
Thanks for the pointer to the hooks. While the VersionHook seems to do a lot more than I need, in this particular scenario my needs are satisfied by o.a.j.o.plugins.version.ReadOnlyVersionManger#isVersionable . I'll look for classes implementing the functionality that I need for the other checks as well. Robert
