-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
This is the log output on every start when the repository is non empty:
948 DEBUG org.modeshape.jcr.index.local.LocalIndexProvider - Initializing the local index provider 'local' in repository 'modeshapeRepository' at: /opt/storage/test-modeshape-4-local-index 4952 DEBUG org.modeshape.jcr.index.local.LocalIndexProvider - Opening the local index provider database for repository 'modeshapeRepository' at: /opt/storage/test-modeshape-4-local-index/local-indexes.db 5291 TRACE org.modeshape.jcr.index.local.LocalIndexProvider - Found the index files {ref1.comparator=org.modeshape.jcr.index.local.MapDB$UniqueKeyComparator@1, ref1.counterRecid=25, ref1.keySerializer=UniqueKeyBTreeSerializer<org.mapdb.Serializer$1@191d0f2c>, ref1.maxNodeSize=32, ref1.numberOfNodeMetas=0, ref1.rootRecidRef=27, ref1.type=TreeMap, ref1.valuesOutsideNodes=false, ref1/inverse.comparator=org.modeshape.jcr.index.local.MapDB$TupleComparator@1, ref1/inverse.counterRecid=0, ref1/inverse.keySerializer=org.modeshape.jcr.index.local.MapDB$LocalTuple2KeySerializer@a84da16, ref1/inverse.maxNodeSize=32, ref1/inverse.numberOfNodeMetas=0, ref1/inverse.rootRecidRef=29, ref1/inverse.type=TreeSet, ref1/options.counterRecid=0, ref1/options.hashSalt=-1634797605, ref1/options.segmentRecids=[J@11cf5577, ref1/options.type=HashMap, ref2.comparator=org.modeshape.jcr.index.local.MapDB$UniqueKeyComparator@1, ref2.counterRecid=46, ref2.keySerializer=UniqueKeyBTreeSerializer<org.mapdb.Serializer$1@191d0f2c>, ref2.maxNodeSize=32, ref2.numberOfNodeMetas=0, ref2.rootRecidRef=48, ref2.type=TreeMap, ref2.valuesOutsideNodes=false, ref2/inverse.comparator=org.modeshape.jcr.index.local.MapDB$TupleComparator@1, ref2/inverse.counterRecid=0, ref2/inverse.keySerializer=org.modeshape.jcr.index.local.MapDB$LocalTuple2KeySerializer@a84da16, ref2/inverse.maxNodeSize=32, ref2/inverse.numberOfNodeMetas=0, ref2/inverse.rootRecidRef=52, ref2/inverse.type=TreeSet, ref2/options.counterRecid=0, ref2/options.hashSalt=-1154882495, ref2/options.segmentRecids=[J@42f400c3, ref2/options.type=HashMap} in index database for repository 'modeshapeRepository' at: /opt/storage/test-modeshape-4-local-index/local-indexes.db 5314 DEBUG org.modeshape.jcr.index.local.LocalIndexProvider - Index provider 'local' is creating index in workspace 'default': ref2@local nodeType=nt:unstructured column=ref2(STRING) kind=VALUE sync=true workspaces=* 5316 DEBUG org.modeshape.jcr.index.local.LocalDuplicateIndex - Reopening storage for 'ref2' index in workspace 'default' 5335 DEBUG org.modeshape.jcr.index.local.LocalIndexProvider - Index provider 'local' is creating index in workspace 'default': ref1@local nodeType=nt:unstructured column=ref1(STRING) kind=VALUE sync=true workspaces=* 5335 DEBUG org.modeshape.jcr.index.local.LocalDuplicateIndex - Reopening storage for 'ref1' index in workspace 'default' 5350 INFO org.erratic.cr.repository.repositoryProvider.RepositoryProvider - [4/7] repository started (repository-config.json) 5364 INFO org.infinispan.jmx.CacheJmxRegistration - ISPN000031: MBeans were successfully registered to the platform MBean server. 5370 DEBUG org.modeshape.jcr.index - Reindexing node '/' in workspace 'default' of repository 'modeshapeRepository': Node af55b687505d64/: { "properties" : { "http://www.jcp.org/jcr/1.0" : { "primaryType" : { "$name" : "mode:root" } , "uuid" : "af55b687505d64/" } } , "children" : [ { "key" : "af55b68317f1e7jcr:system" , "name" : "jcr:system" } , { "key" : "af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823" , "name" : "nodeWithSysName" } , { "key" : "af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f" , "name" : "nodeWithSysName" } ] , "childrenInfo" : { "count" : 3 } } 5374 DEBUG org.modeshape.jcr.index - Reindexing node '/nodeWithSysName' in workspace 'default' of repository 'modeshapeRepository': Node af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823: { "key" : "af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823" , "parent" : "af55b687505d64/" , "properties" : { "http://www.jcp.org/jcr/1.0" : { "primaryType" : { "$name" : "nt:unstructured" } } , "" : { "ref2" : "cccccccccccccccccccccc-0000-1111-1234-123456789abcd" , "ref1" : "cccccccccccccccccccccc-0000-1111-1234-123456789abcd" } } } 5377 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Removing node 'af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823' from 'ref2' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5383 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Adding node 'af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823' to 'ref2' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5385 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Removing node 'af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823' from 'ref1' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5386 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Adding node 'af55b687505d648e4a88e5-324f-4a57-ad1c-ae15842dc823' to 'ref1' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5390 DEBUG org.modeshape.jcr.index - Reindexing node '/nodeWithSysName[2]' in workspace 'default' of repository 'modeshapeRepository': Node af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f: { "key" : "af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f" , "parent" : "af55b687505d64/" , "properties" : { "http://www.jcp.org/jcr/1.0" : { "primaryType" : { "$name" : "nt:unstructured" } } , "" : { "ref2" : "cccccccccccccccccccccc-0000-1111-1234-123456789abcd" , "ref1" : "cccccccccccccccccccccc-0000-1111-1234-123456789abcd" } } } 5392 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Removing node 'af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f' from 'ref2' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5395 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Adding node 'af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f' to 'ref2' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5396 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Removing node 'af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f' from 'ref1' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd' 5401 TRACE org.modeshape.jcr.index.local.LocalDuplicateIndex - Adding node 'af55b687505d64f0e706ad-c4ed-4166-815a-d5929381b47f' to 'ref1' index with value 'cccccccccccccccccccccc-0000-1111-1234-123456789abcd'
No indexes are being deleted or added, it happens right after repo setup.
This is my config:
{ "name": "modeshapeRepository", "monitoring": { "enabled": true }, "storage": { "cacheName": "contentRepository", "cacheConfiguration": "META-INF/infinispan-test-file-config-6.xml", "binaryStorage": { "type": "file", "directory": "/opt/storage/test-modeshape-4-binaries" } }, "workspaces": { "default": "default", "allowCreation": true }, "indexProviders": { "local": { "classname": "org.modeshape.jcr.index.local.LocalIndexProvider", "directory": "/opt/storage/test-modeshape-4-local-index" } }, "indexes": { }, "security": { "anonymous": { "roles": ["readonly", "readwrite", "admin"], "useOnFailedLogin": false } } }