Kristian Waagan wrote:
Hello,

While investigating a little around logging of connections, I found that the Javadoc of NetworkServerControl.logConnections(boolean) states that a message is printed to derby.log when a connection is made or closed. I do not observe this when connecting/disconnecting to/from a network server with ij. Only when connecting is a message printed (if connection logging is enabled).

I agree with your analysis. The Network Server appears to only log
connections, not disconnections, and so the line in
http://db.apache.org/derby/javadoc/publishedapi/org/apache/derby/drda/NetworkServerControl.html
which says

  # derby.drda.logConnections=true: This property turns on logging of 
connections
    and disconnections. Default is connections are not logged.

seems inaccurate, and should be changed to remove "and disconnections".

This same doc also appears to exist at:

http://db.apache.org/derby/docs/10.1/adminguide/radminconfigdb2jdrdalogconnections.html
http://db.apache.org/derby/docs/10.0/manuals/admin/hubprnt23.html
and http://db.apache.org/derby/docs/10.1/adminguide/tadminlogfile.html

So we should fix it in all these places, I think.

I suppose that the alternative would be to modify the Network Server
so that it logs disconnections; I could see situations where that would
be useful. If we do that, we should probably also investigate
http://issues.apache.org/jira/browse/DERBY-292 and
http://issues.apache.org/jira/browse/DERBY-293 at the same time, as they
seem related (and would have helped the original user, I think, who was
trying to figure out if his connection pooling was working or not).

thanks,

bryan

Reply via email to