db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: [jira] Commented: (JDO-623) Query cancel and timeout support
Date Tue, 12 Jan 2010 17:16:49 GMT
Got it. Thanks.

Craig

On Jan 12, 2010, at 8:59 AM, Andy Jefferson (JIRA) wrote:

>
>    [ https://issues.apache.org/jira/browse/JDO-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799270

> #action_12799270 ]
>
> Andy Jefferson commented on JDO-623:
> ------------------------------------
>
> JDO TCK SVN will look for datanucleus-core/datanucleus-jpa 2.0.1- 
> SNAPSHOT. They are in the DN M2 nightly repo (and also the DN M1  
> nightly repo I'd guess). Just running Maven not "offline" should  
> find them.
>
>> 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
>>            Fix For: JDO 2 maintenance release 3
>>
>>        Attachments: JDO-623-mbo.patch, JDO-623-tck2-mbo.patch,  
>> JDO-623-testcase.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.
>

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message