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.

Reply via email to