db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Leroux (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-4560) ij should remove async statements from session after completion
Date Mon, 22 Feb 2010 11:50:28 GMT
ij should remove async statements from session after completion
---------------------------------------------------------------

                 Key: DERBY-4560
                 URL: https://issues.apache.org/jira/browse/DERBY-4560
             Project: Derby
          Issue Type: Bug
          Components: Tools
    Affects Versions: 10.6.0.0
            Reporter: Sylvain Leroux


ij has statements to execute (ASYNC) and join (WAIT FOR) asynchronous statements.

Asynchronous statements are stored in the corresponding Session object. but - as far as I
can see - are never removed. This leads to memory leaks:
  ij> CONNECT 'jdbc:derby:memory:dummy;create=true';
  ij> WAIT FOR stmt;
  IJ ERROR: No async statement exists with the name STMT
  ij> ASYNC stmt 'VALUES(1),(2),(3)';
  ij> WAIT FOR stmt;
  1          
  -----------
  1          
  2          
  3          
  
  3 rows selected
  ij> WAIT FOR stmt;
  ERROR XJ012: 'Statement' already closed.


After completion, WAIT FOR should remove the async statement from the session since it is
no longer useful.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message