AssertionError during synchronization with multiple query threads
Related to #5
ERROR [2018-11-08 09:38:53,742] fi.vtt.apros.synchronization.backend.AprosSynchronizationEventHandler: Failed to synchronize DHNM0: java.lang.AssertionError
java.lang.AssertionError: null
at org.simantics.db.impl.query.QueryCache.runnerAsyncMultiReadEntry(QueryCache.java:1000)
at org.simantics.db.impl.query.QueryProcessor.runAsyncMultiRead(QueryProcessor.java:671)
at org.simantics.db.impl.query.QueryProcessor.query(QueryProcessor.java:4348)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:2242)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:2203)
at org.simantics.db.impl.graph.ReadGraphImpl.getAssertedObjects(ReadGraphImpl.java:895)
at org.simantics.db.layer0.request.PropertyInfoRequest.perform(PropertyInfoRequest.java:64)
at org.simantics.db.layer0.request.PropertyInfoRequest.perform(PropertyInfoRequest.java:1)
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:112)
... 57 common frames omitted
Wrapped by: org.simantics.db.exception.DatabaseException: java.lang.AssertionError
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:124)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:520)
at org.simantics.db.impl.query.QueryCacheBase.resultReadEntry(QueryCacheBase.java:1065)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1947)
at org.simantics.structural2.queries.PossibleConnectionPointInfo.perform(PossibleConnectionPointInfo.java:22)
at org.simantics.structural2.queries.PossibleConnectionPointInfo.perform(PossibleConnectionPointInfo.java:1)
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:112)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:520)
at org.simantics.db.impl.query.QueryCacheBase.resultReadEntry(QueryCacheBase.java:1065)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1947)
at org.simantics.structural2.queries.ConnectionPointMapOfResource.perform(ConnectionPointMapOfResource.java:51)
at org.simantics.structural2.queries.ConnectionPointMapOfResource.perform(ConnectionPointMapOfResource.java:1)
at org.simantics.db.common.request.TransientResourceRead.perform(TransientResourceRead.java:40)
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:112)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:520)
at org.simantics.db.impl.query.QueryCacheBase.resultReadEntry(QueryCacheBase.java:1065)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1947)
at org.simantics.structural2.Functions$3.getPossibleConnectionPointFromContext(Functions.java:203)
at org.simantics.structural2.Functions$3.getVariable(Functions.java:255)
at org.simantics.db.layer0.variable.StandardGraphChildVariable.getPossibleDomainProperty(StandardGraphChildVariable.java:67)
at org.simantics.db.layer0.variable.AbstractVariable.getPossibleProperty(AbstractVariable.java:389)
at org.simantics.db.layer0.variable.AbstractVariable.getPossibleTypeFunction(AbstractVariable.java:1044)
at org.simantics.db.layer0.variable.AbstractVariable.getPossibleType(AbstractVariable.java:966)
at org.simantics.structural2.Functions$4.getVariable(Functions.java:554)
at org.simantics.db.layer0.variable.StandardGraphChildVariable.getPossibleChild(StandardGraphChildVariable.java:78)
at org.simantics.db.layer0.variable.AbstractVariable.getChild(AbstractVariable.java:555)
at org.simantics.db.layer0.variable.AbstractVariable.browse(AbstractVariable.java:597)
at org.simantics.structural2.variables.BrowseConnectionDescriptor$ComputeVariable.perform(BrowseConnectionDescriptor.java:44)
at org.simantics.structural2.variables.BrowseConnectionDescriptor$ComputeVariable.perform(BrowseConnectionDescriptor.java:1)
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:112)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:520)
at org.simantics.db.impl.query.QueryCacheBase.resultReadEntry(QueryCacheBase.java:1065)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1947)
at org.simantics.structural2.variables.BrowseConnectionDescriptor.getVariable(BrowseConnectionDescriptor.java:50)
at org.simantics.structural2.variables.BrowseConnectionDescriptor.getURI(BrowseConnectionDescriptor.java:53)
at org.simantics.structural2.variables.BrowseConnectionDescriptor.isFlattenedFrom(BrowseConnectionDescriptor.java:71)
at org.simantics.structural.synchronization.Synchronizer.mapConnections(Synchronizer.java:97)
at org.simantics.structural.synchronization.Synchronizer.synchronizationRec(Synchronizer.java:215)
at org.simantics.structural.synchronization.Synchronizer.synchronizationRec(Synchronizer.java:236)
at org.simantics.structural.synchronization.Synchronizer.synchronizationRec(Synchronizer.java:259)
at org.simantics.structural.synchronization.Synchronizer.synchronizationRec(Synchronizer.java:259)
at org.simantics.structural.synchronization.Synchronizer.partialSynchronization(Synchronizer.java:285)
at org.simantics.structural.synchronization.Synchronizer.partialSynchronization(Synchronizer.java:311)
...