Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 4531 invoked from network); 26 Feb 2010 06:34:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 06:34:49 -0000 Received: (qmail 3486 invoked by uid 500); 26 Feb 2010 06:34:48 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 3478 invoked by uid 99); 26 Feb 2010 06:34:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 06:34:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 06:34:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E8F7429A0015 for ; Thu, 25 Feb 2010 22:34:27 -0800 (PST) Message-ID: <1901708662.548291267166067953.JavaMail.jira@brutus.apache.org> Date: Fri, 26 Feb 2010 06:34:27 +0000 (UTC) From: "Craig L Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-623) Query cancel and timeout support In-Reply-To: <1847040061.1233949139537.JavaMail.jira@brutus> 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/JDO-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838727#action_12838727 ] Craig L Russell commented on JDO-623: ------------------------------------- Updated constants and signatures. svn commit -m "JDO-623 Update signatures and constants for Datastore timeout" api2/src tck2/src/conf tck2/src/java/org/apache/jdo/tck/JDO_Test.java tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java Sending api2/src/java/javax/jdo/Constants.java Sending api2/src/java/javax/jdo/JDOHelper.java Sending api2/src/schema/javax/jdo/jdoconfig_2_3.dtd Sending api2/src/schema/javax/jdo/jdoconfig_2_3.xsd Sending api2/src/schema/javax/jdo/jdoquery_2_3.dtd Sending api2/src/schema/javax/jdo/jdoquery_2_3.xsd Sending tck2/src/conf/jdo-2_3-signatures.txt Sending tck2/src/java/org/apache/jdo/tck/JDO_Test.java Sending tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java Transmitting file data ......... Committed revision 916585. > Query cancel and timeout support > -------------------------------- > > Key: JDO-623 > URL: https://issues.apache.org/jira/browse/JDO-623 > Project: JDO > Issue Type: New Feature > Components: api2, tck2 > Reporter: Andy Jefferson > Assignee: Michael Bouschen > Fix For: JDO 2 maintenance release 3 > > Attachments: JDO-623-mbo.patch, JDO-623-tck2-mbo.patch, JDO-623-testcase.patch, JDO-623-ZeroTimeoutTestcase.patch, jdo623.patch, jdo623.patch, pmf_option.patch, query.patch, query_timeout.patch > > > JDO doesn't have a mechanism to stop queries from overrunning. JPA2 now allows > a persistence property to allow timing them out, and most JDO implementations > have allowed this as an extension since JDO1. It would make sense for JDO > (2.3) to have the same or a variation. I propose having the following > Simple PMF property "javax.jdo.option.queryTimeout" to specify the number of millisecs (or secs) before any query is timed out. Throw a QueryTimeoutException (extends JDOException) when the timeout happens. > Add methods Query.setTimeout(int), Query.getTimeout() to allow setting/retrieving the timeout interval on a per-query basis. > Add method Query.cancel() to cancel any running query. If an implementation doesn't support cancelling of queries then it should throw a JDOUnsupportedOptionException. Any query execute() that is cancelled will throw a QueryInterruptedException (extends JDOUserException). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.