Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E012E6BAF for ; Tue, 12 Jul 2011 17:01:25 +0000 (UTC) Received: (qmail 88657 invoked by uid 500); 12 Jul 2011 17:01:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 88519 invoked by uid 500); 12 Jul 2011 17:01:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 88512 invoked by uid 99); 12 Jul 2011 17:01:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 17:01:24 +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; Tue, 12 Jul 2011 17:01:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8CFCE4CD99 for ; Tue, 12 Jul 2011 17:01:00 +0000 (UTC) Date: Tue, 12 Jul 2011 17:01:00 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <1806051073.6647.1310490060574.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <215713791.2172.1310371619866.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5325) Checkpoint fails with ClosedChannelException in InterruptResilienceTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063995#comment-13063995 ] Dag H. Wanvik commented on DERBY-5325: -------------------------------------- This seems to be a hitherto unseen corner case that is not adequately address: writeRAFHeader is not always interrupt safe. It should be solvable using the existing pattern. > Checkpoint fails with ClosedChannelException in InterruptResilienceTest > ----------------------------------------------------------------------- > > Key: DERBY-5325 > URL: https://issues.apache.org/jira/browse/DERBY-5325 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.9.0.0 > Environment: Solaris 10 5/08 s10x_u5wos_10 X86 > Java(TM) SE Runtime Environment (build 1.7.0-b147) > Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17 mixed mode) > Reporter: Knut Anders Hatlen > Attachments: derby.log, error-stacktrace.out > > > Seen here: http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/sol/1144688-suitesAll_diff.txt > There was 1 error: > 1) testRAFWriteInterrupted(org.apache.derbyTesting.functionTests.tests.store.InterruptResilienceTest)java.sql.SQLException: The exception 'java.sql.SQLException: Log Record has been sent to the stream, but it cannot be applied to the store (Object null). This may cause recovery problems also.' was thrown while evaluating an expression. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown Source) > at org.apache.derbyTesting.functionTests.tests.store.InterruptResilienceTest.testRAFWriteInterrupted(InterruptResilienceTest.java:217) > (...) > Caused by: java.nio.channels.ClosedChannelException > at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:94) > at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:691) > at org.apache.derby.impl.store.raw.data.RAFContainer4.writeFull(Unknown Source) > at org.apache.derby.impl.store.raw.data.RAFContainer4.writeAtOffset(Unknown Source) > at org.apache.derby.impl.store.raw.data.FileContainer.writeHeader(Unknown Source) > at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source) > at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source) > at org.apache.derby.impl.services.cache.ConcurrentCache.cleanAndUnkeepEntry(Unknown Source) > at org.apache.derby.impl.services.cache.ConcurrentCache.cleanCache(Unknown Source) > at org.apache.derby.impl.services.cache.ConcurrentCache.cleanAll(Unknown Source) > at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source) > at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source) > at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) > at org.apache.derby.impl.store.raw.RawStore.checkpoint(Unknown Source) > at org.apache.derby.impl.store.raw.log.LogToFile.performWork(Unknown Source) > at org.apache.derby.impl.services.daemon.BasicDaemon.serviceClient(Unknown Source) > at org.apache.derby.impl.services.daemon.BasicDaemon.work(Unknown Source) > at org.apache.derby.impl.services.daemon.BasicDaemon.run(Unknown Source) > at java.lang.Thread.run(Thread.java:722) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira