Details
Assignee
Michael OffnerMichael OffnerReporter
Julian HalliwellJulian HalliwellPriority
MajorNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Julian Halliwell
Julian HalliwellPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 9 February 2015 at 11:28
Updated 11 March 2016 at 07:29
Calling
OrmReload()
seems to cause ORM datasource connections started before the call to become "detached" and fail to time out.New connections created after the reload call time out correctly according to the Lucee datasource timeout setting (default=1 minute), but those started before the `OrmReload()` ignore that setting and continue until closed by the database (in MySQL/MariaDB the default is 8 hours later).
This can lead to a build-up of unused, "detached" connections.
Expected behaviour
`OrmReload()` should I believe cause all existing connections to be closed, but if not then existing connections should at least respect the Lucee datasource timeout settng.
Actual behaviour
Existing datasource connections fail to timeout and continue until closed by the database server.
Database
MariaDB 10.0.x (compatible with MySQL 5.6) using bundled Lucee MySQL connector.
Orm settings
this.datasource = "datasource"; //single datasource this.ormEnabled = true; this.ormSettings = { autoManageSession=false ,flushAtRequestEnd=false ,dialect = "MySQLwithInnoDB" };