× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
NielsGron reported 2015-03-03T22:50:04Z  · tariqrahiman last modified 2015-06-04T17:47:37Z

Add option to auto-reconnect disconnected connections in Query Window


customer request
Dev
Thomas Conrad
tomconrad
QA
Jenny Nishimura
JennyNishimura
Priority Major
Complexity Unknown
Component Q Analyzer
Version 16.0

Add option File->Options->General->Query Windows->[Auto-reconnect connection on execution if it is closed].  Default value is false.

Use this API to determine if connection is closed : http://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#isValid%28int%29

See AFScriptContext.executeScriptStatements() line 2035.  Before this, we can check to see if the option above is enabled.  If it is, then we check to see if the connection isValid( 15 seconds ).  If it is not, then we try to establish a new connection.  We need to add a status text in the status bar indicating that we are reconnecting, because the .connect() method could hang based on network conditions.  If it hangs, we need to make sure there is an indicator to the user that it is trying to connect.  Clicking the cancel button while it is hanging may not stop the reconnect, so we need to consider this also.

If there is a reconnect, we need to make sure we propagate the new connection back the the Query Window and update the SPID.  Also, if Connection Pooling is enabled, we will ignore the auto-reconnect option.

If the auto-reconnect option is disabled and the user executes a statement on a disconnected connection, we want the error message to the user to include a message telling the user that he can enable auto-reconnect in the File->Options ... see AFScriptContext line 2037.

 

1 attachment

Issue #13108

Closed
Fixed
Resolved 2015-03-16T22:30:27Z
 
 
Completion
No due date
Fixed Build ADS 16.0.0-rc-14
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017