db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig L Russell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-623) Query cancel and timeout support
Date Fri, 26 Feb 2010 06:34:27 GMT

    [ 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,
> 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.

View raw message