From 59c7328ea15d85d2a27f87c5b382d03659fe4ace Mon Sep 17 00:00:00 2001 From: Sven Krieger <37476281+svkrieger@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:01:08 +0200 Subject: [PATCH] Configure DB Connection Pool Type (#4012) Sequel changed the default connection pool type, which has not been tested with our extensions. Therefore, configuring the pool type `:threaded`. --- lib/cloud_controller/db_connection/options_factory.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cloud_controller/db_connection/options_factory.rb b/lib/cloud_controller/db_connection/options_factory.rb index cac44c55079..78c11aaec23 100644 --- a/lib/cloud_controller/db_connection/options_factory.rb +++ b/lib/cloud_controller/db_connection/options_factory.rb @@ -37,6 +37,7 @@ def base_options(opts) log_level: opts[:log_level], max_connections: opts[:max_connections], pool_timeout: opts[:pool_timeout], + pool_class: :threaded, read_timeout: opts[:read_timeout], sql_mode: %i[strict_trans_tables strict_all_tables no_zero_in_date] }