clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CLEREZZA-745) ConcurrentModicationException on TDB storage provider (SingleDataset)
Date Wed, 10 Jul 2013 15:57:52 GMT

    [ https://issues.apache.org/jira/browse/CLEREZZA-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704681#comment-13704681
] 

Reto Bachmann-Gmür commented on CLEREZZA-745:
---------------------------------------------

another variant:
java.util.ConcurrentModificationException: Reader = 1, Writer = 1
	at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157)
	at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152)
	at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:79)
	at com.hp.hpl.jena.tdb.sys.DatasetControlMRSW.startRead(DatasetControlMRSW.java:46)
	at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.startRead(NodeTupleTableConcrete.java:68)
	at com.hp.hpl.jena.tdb.nodetable.NodeTupleTableConcrete.findAsNodeIds(NodeTupleTableConcrete.java:139)
	at com.hp.hpl.jena.tdb.store.TripleTable.find(TripleTable.java:76)
	at com.hp.hpl.jena.tdb.store.DatasetGraphTDB.findInDftGraph(DatasetGraphTDB.java:100)
	at com.hp.hpl.jena.sparql.core.DatasetGraphBaseFind.find(DatasetGraphBaseFind.java:46)
	at com.hp.hpl.jena.tdb.store.GraphTDBBase.graphBaseFindDft(GraphTDBBase.java:114)
	at com.hp.hpl.jena.tdb.store.GraphTriplesTDB.graphBaseFind(GraphTriplesTDB.java:71)
	at com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:268)
	at com.hp.hpl.jena.graph.impl.GraphBase.graphBaseFind(GraphBase.java:290)
	at com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:287)
	at org.apache.clerezza.rdf.jena.storage.JenaGraphAdaptor.performFilter(JenaGraphAdaptor.java:94)
	at org.apache.clerezza.rdf.core.impl.AbstractTripleCollection.filter(AbstractTripleCollection.java:71)
	at org.apache.clerezza.rdf.core.impl.AbstractTripleCollection.contains(AbstractTripleCollection.java:65)
	at org.apache.clerezza.rdf.core.impl.util.PrivilegedTripleCollectionWrapper$4.run(PrivilegedTripleCollectionWrapper.java:88)
	at org.apache.clerezza.rdf.core.impl.util.PrivilegedTripleCollectionWrapper$4.run(PrivilegedTripleCollectionWrapper.java:84)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.clerezza.rdf.core.impl.util.PrivilegedTripleCollectionWrapper.contains(PrivilegedTripleCollectionWrapper.java:84)
	at org.apache.clerezza.rdf.core.access.LockableMGraphWrapper.contains(LockableMGraphWrapper.java:118)
	at org.apache.clerezza.rdf.jena.tdb.storage.MultiThreadedTest.perform(MultiThreadedTest.java:131)


                
> ConcurrentModicationException on TDB storage provider (SingleDataset)
> ---------------------------------------------------------------------
>
>                 Key: CLEREZZA-745
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-745
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Rupert Westenthaler
>
> As reported by Minto van der Sluis in [1] the SingleDataset Jena TDB TcProvider can throw
.ConcurrentModificationException when iterating over a read protected MGraph and a modification
is done to an other graph managed in the same Jena TDB Dataset. This includes creating a new
graph in the dataset.
> Based on a first analysis this is caused by the Single Dataset Jena TDB TcProvider using
per TripleCollections ReadWrite Locks instead of a single ReadWrite Lock for all graphs managed
by the same Jena TDB Dataset.
> [1] http://mail-archives.apache.org/mod_mbox/clerezza-dev/201303.mbox/%3C5140A9CD.1010208%40xup.nl%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message