This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 159929 - Unable to cancel long running queries
Summary: Unable to cancel long running queries
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: NETFIX, UI
: 211121 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-09 17:23 UTC by esmithbss
Modified: 2012-06-26 04:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
implement query canceling for the query and requery case (10.64 KB, patch)
2012-03-12 19:26 UTC, matthias42
Details | Diff
hiding the result component causes display of further queries to fail - patch for this (1.07 KB, patch)
2012-03-12 19:27 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-03-09 17:23:43 UTC
There needs to be a way to cancel long running queries.

When using the DB Explorer to view data, if the query takes too long to execute, there needs to be a way to terminate
the process.  If you click on the process bar in the bottom right corner and select cancel process, the process doesn't
always cancel.

It appears that the system is stuck in a wait state watching for data to be returned by the database and cannot process
the cancellation request.

Method to test:

1) Create a database with 2 tables where a is a parent table of b such that a.foreign_key = b.key  Each record should be
at least 100 fields in size to simulate poorly designed legacy systems data.
2) Populate each table with 100000 rows of dummy data.
3) Connect via JDBC
4) Select to excecute a command
5) command to execute is select * from a,b where a.foreign_key = b.key
6) Execute the command.
7) After 1 or 2 minutes try to cancel the operation.
Comment 1 Jiri Rechtacek 2009-10-16 14:03:09 UTC
Reassigned to new owner.
Comment 2 matthias42 2012-03-12 19:26:57 UTC
Created attachment 116634 [details]
implement query canceling for the query and requery case
Comment 3 matthias42 2012-03-12 19:27:59 UTC
Created attachment 116635 [details]
hiding the result component causes display of further queries to fail - patch for this
Comment 4 matthias42 2012-04-16 10:47:17 UTC
*** Bug 211121 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Havlin 2012-06-25 13:12:04 UTC
Patches integrated as http://hg.netbeans.org/core-main/rev/ca4a4299c4e6
Many thanks to Matthias.
Comment 6 Quality Engineering 2012-06-26 04:56:13 UTC
Integrated into 'main-golden', will be available in build *201206260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ca4a4299c4e6
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #159929: Unable to cancel long running queries