Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE85883E8 for ; Fri, 12 Aug 2011 20:45:50 +0000 (UTC) Received: (qmail 38997 invoked by uid 500); 12 Aug 2011 20:45:50 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 38940 invoked by uid 500); 12 Aug 2011 20:45:50 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 38930 invoked by uid 99); 12 Aug 2011 20:45:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 20:45:49 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 20:45:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BEBF3B947C for ; Fri, 12 Aug 2011 20:45:27 +0000 (UTC) Date: Fri, 12 Aug 2011 20:45:27 +0000 (UTC) From: "Simon Helsen (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <356246212.34416.1313181927777.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (JENA-96) transactional behavior not sound MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 transactional behavior not sound -------------------------------- Key: JENA-96 URL: https://issues.apache.org/jira/browse/JENA-96 Project: Jena Issue Type: Bug Environment: tx-tdb-0.9.0-20110809.130753-7 Reporter: Simon Helsen Priority: Critical TDB-TX tx-tdb-0.9.0-20110809.130753-7 has transactionality issues. I am seeing the following stack trace: com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Transaction has already committed or aborted at com.hp.hpl.jena.tdb.transaction.Transaction.abort(Transaction.java:107) at com.hp.hpl.jena.tdb.DatasetGraphTxn.abort(DatasetGraphTxn.java:31) at com.ibm.team.jfs.rdf.internal.jenatdbtx.JenaTdbProvider.storeOperation(JenaTdbProvider.java:208) at com.ibm.team.jfs.rdf.internal.jenatdbtx.JenaTdbProvider.replace(JenaTdbProvider.java:2411) at com.ibm.team.jfs.rdf.internal.jenatdbtx.JenaRdfService.replace(JenaRdfService.java:265) ... 14 more I use the following bit of code to execute writes: DatasetGraphTxn dsGraph = null; try { dsGraph = this.store.begin(ReadWrite.WRITE); Dataset ds = dsGraph.toDataset(); Model m = ds.getNamedModel(graphName); E e = modelWriteActivity.run(m); dsGraph.commit(); return e; } catch (Exception e) { if (dsGraph != null) { dsGraph.abort(); } // TODO handle better throw new RuntimeException(e); } finally { if (dsGraph != null) { dsGraph.close(); } //System.out.println("ModelWriteActivity: " + (System.currentTimeMillis() - t) + "ms"); //$NON-NLS-1$ //$NON-NLS-2$ } The only thing I do in the ModelWriteActivity is model.removeAll(); model.add(graph); As you can see, there is nothing in here which could have made it possible that the transaction has committed before. Moreover I only see this happening when I am executing massive concurrent reads/writes. Sequential operations do not expose this problem. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira