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 ECE549D8E for ; Fri, 13 Apr 2012 14:16:45 +0000 (UTC) Received: (qmail 89406 invoked by uid 500); 13 Apr 2012 14:16:45 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 89362 invoked by uid 500); 13 Apr 2012 14:16:45 -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 89353 invoked by uid 99); 13 Apr 2012 14:16:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 14:16:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 13 Apr 2012 14:16:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 41A2136944A for ; Fri, 13 Apr 2012 14:16:22 +0000 (UTC) Date: Fri, 13 Apr 2012 14:16:22 +0000 (UTC) From: "Andy Seaborne (Closed) (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <469274398.22112.1334326582270.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <297307743.17587.1334245397762.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (JENA-234) In TDB, namespace data out of sync when dataset not closed properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JENA-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne closed JENA-234. ------------------------------ > In TDB, namespace data out of sync when dataset not closed properly > ------------------------------------------------------------------- > > Key: JENA-234 > URL: https://issues.apache.org/jira/browse/JENA-234 > Project: Apache Jena > Issue Type: Bug > Components: TDB > Affects Versions: TDB 0.9.0 > Environment: Windows 7. I think this can be repro'ed in any environment > Reporter: Nathanael Thompson > Assignee: Andy Seaborne > Fix For: TDB 0.9.1 > > Attachments: Jena_234.java > > > When a TDB model is not closed properly. the NodeToId table get's out of sync with the IdToNode table. This is because writeBuffer in ObjectFileStorage doesn't get written, but the data in the NodeToId table does get written. This causes the error mentioned in the following email thread: > http://mail-archives.apache.org/mod_mbox/incubator-jena-dev/201201.mbox/%3C4F1EE540.5050307@apache.org%3E > Normally I'd say this isn't a bug because the user should close their models correctly. But it seems like this should be fixed, because this mistake breaks TDB for all future uses, and possibly forces the user to recreate the whole db. I'd be fine with just not writing the buffered data to both tables, as long as they're in sync. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira