Allow Controler validation of datasource connections to be disabled

Description

Lucee's controler thread validates every connection on every datasource every minute regardless of your timeout settings. This can cause a lot of traffic when you have a lot of datasources, and the validation is inside a syncronized method as explained in ticket https://luceeserver.atlassian.net/browse/LDEV-3124

Provide a setting to disable the every-minute validation checks. The validation flag can still be enabled on the datasource which will validate the connection before it is used.

Activity

Show:

Zac Spitzer 9 January 2025 at 17:00

this is no longer used in 6.2

Brad Wood 2 November 2020 at 17:31

Looks good Thanks for letting me review it!!

Michael Offner 2 November 2020 at 09:16

Brad Wood 30 October 2020 at 21:03

I see the new flag, but there is a problem where it's never actually being used!

The validate param to this method needs to actually be influencing this if statement so the isValidEL() call is skipped when validate is false.

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/db/DCStack.java#L163

Fixed

Details

Assignee

Reporter

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

Fix versions

Priority

Created 29 October 2020 at 14:46
Updated 2 April 2025 at 16:06
Resolved 2 November 2020 at 17:31

Flag notifications