dynamobi/dynamobi — Issue #641: [FRG-231] loopback links cause unwanted reference count
Author: dynamobi-build
Created: 2011-12-30 03:39:59+00:00
State: open
Labels: FRG, JDBC Foreign Data Wrapper

[reporter="jvs", created="Thu, 2 Nov 2006 00:02:59 -0500 (GMT-05:00)"]
create server loopback_localdb

foreign data wrapper sys_jdbc

options(

driver_class 'net.sf.farrago.jdbc.engine.FarragoJdbcEngineDriver',

url 'jdbc:farrago:',

user_name 'sa');

Do this in a running server, exit the client, and then try to !quit the server. It will say that there are still sessions running. The problem arises because we cache the foreign server connection in the code cache, and since it points to itself...

It's not a big deal since !kill will shut the server down properly as it flushes the code cache.